#CB02B6

#cb02b6 ≈ Medium Violet Red

  • magenta
  • Lightness: medium
  • Saturation: vivid
  • Balanced

#cb02b6 is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 79.61% red, 0.78% green and 71.37% blue; printed in CMYK it uses 0% cyan, 99.01% magenta, 10.34% yellow and 20.39% black. Its hue angle is 306.27°, with 98.05% saturation and 40.2% lightness in HSL. It sits between warm and cool, and is often associated with creativity, boldness and individuality. Designers typically use it for beauty and cosmetics, creative studios and call-to-action buttons. White text on this color reaches a contrast ratio of 4.97:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 8.85.

Description generated from the measured properties of this color.

Conversions of #cb02b6 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#cc00cc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.1612

Readable text 4.97:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.22:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #707070 ≈ 0.003% of males
Achromatomaly #9d5891 ≈ 0.001% of males
Protanopia #005fba ≈ 1.01% of males
Deuteranopia #5f79b2 ≈ 1.27% of males
Tritanopia #d52a6a ≈ 0.0001% of males
Protanomaly #854ab8 ≈ 1.08% of males
Deuteranomaly #965fb4 ≈ 4.63% of males
Tritanomaly #d11f8f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-cb02b6 {
  color: #cb02b6;
}
Background
.bg-cb02b6 {
  background-color: #cb02b6;
  color: #ffffff;
}
Border
.border-cb02b6 {
  border: 2px solid #cb02b6;
}
CSS variables
:root {
  --color-primary: #cb02b6;
  --color-primary-rgb: 203 2 182;
  --color-primary-hsl: 306 98% 40%;
}
Gradient
.gradient-cb02b6 {
  background: linear-gradient(135deg, #cb02b6, #cb0252);
}
Colored shadow
.shadow-cb02b6 {
  box-shadow: 0 8px 24px rgb(203 2 182 / 0.35);
}

Medium Violet Red
#cb02b6  rgb(203, 2, 182)  hsl(306, 98%, 40%)  Medium Violet Red
#02cb17  rgb(2, 203, 23)  hsl(126, 98%, 40%)  Lime Green
#b6cb02  rgb(182, 203, 2)  hsl(66, 98%, 40%)  Pear
#02b6cb  rgb(2, 182, 203)  hsl(186, 98%, 40%)  Dark Turquoise