#CB40B6#CB40B6

#CB40B6 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.1% C 0.215 H 334.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#CB40B6
RGBrgb(203, 64, 182)
HSLhsl(309, 57%, 52%)
HSVhsv(309, 68%, 80%)
CMYKcmyk(0%, 68.5%, 10.3%, 20.4%)
CIE-LABlab(51.55, 66.91, -33.85)
CIE-LCHlch(51.55, 74.99, 333.17°)
OKLaboklab(61.06% 0.1945 -0.0925)
OKLCHoklch(61.06% 0.215 334.6)
XYZxyz(34.9058, 19.7436, 46.2194)
Luminance0.1974 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40B6 #40CB55
analogous
#9B40CB #CB40B6 #CB4070
triadic
#CB40B6 #B6CB40 #40B6CB
tetradic
#CB40B6 #CB9B40 #40CB55 #4070CB
square
#CB40B6 #CB9B40 #40CB55 #4070CB
split-complementary
#CB40B6 #70CB40 #40CB9B
monochromatic
#721F65 #A22C90 #CB40B6 #D870C8 #E5A0DB

Accessibility & contrast

On white

4.24
#CB40B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#CB40B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40B6
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40B6#FFFFFF#000000##000000
##CB40B61.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6EB9
Deuteranopia (green-blind)
#6E82B3
Tritanopia (blue-blind)
#D54B76
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb40b6;
/* rgb */ color: rgb(203, 64, 182);
/* oklch */ color: oklch(61.1% 0.215 334.6);
Tailwind
colors: {
  custom: {
    50: '#de80cc',
    500: '#cb40b6',
    950: '#000000',
  },
}
SCSS
$custom: #cb40b6;
$custom-light: #de80cc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40b6",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 309.065,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61061,
    "c": 0.21537,
    "h": 334.6
  },
  "luminance": 0.19741
}

Semantic roles & 50–950 ramp

primary
#CB40B6
secondary
#95D29E
accent
#E05E47
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB40B6

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CB40B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva