#CB40B9#CB40B9

#CB40B9 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.2% C 0.218 H 333.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#CB40B9
RGBrgb(203, 64, 185)
HSLhsl(308, 57%, 52%)
HSVhsv(308, 68%, 80%)
CMYKcmyk(0%, 68.5%, 8.9%, 20.4%)
CIE-LABlab(51.69, 67.37, -35.37)
CIE-LCHlch(51.69, 76.09, 332.30°)
OKLaboklab(61.21% 0.1948 -0.0968)
OKLCHoklch(61.21% 0.218 333.6)
XYZxyz(35.2192, 19.8690, 47.8697)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40B9 #40CB52
analogous
#9840CB #CB40B9 #CB4073
triadic
#CB40B9 #B9CB40 #40B9CB
tetradic
#CB40B9 #CB9840 #40CB52 #4073CB
square
#CB40B9 #CB9840 #40CB52 #4073CB
split-complementary
#CB40B9 #73CB40 #40CB98
monochromatic
#721F67 #A22C93 #CB40B9 #D870CB #E5A0DC

Accessibility & contrast

On white

4.22
#CB40B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#CB40B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40B9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40B9#FFFFFF#000000##000000
##CB40B91.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6EBC
Deuteranopia (green-blind)
#6D82B6
Tritanopia (blue-blind)
#D44C77
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb40b9;
/* rgb */ color: rgb(203, 64, 185);
/* oklch */ color: oklch(61.2% 0.218 333.6);
Tailwind
colors: {
  custom: {
    50: '#de80ce',
    500: '#cb40b9',
    950: '#000000',
  },
}
SCSS
$custom: #cb40b9;
$custom-light: #de80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40b9",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 307.77,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61211,
    "c": 0.21753,
    "h": 333.6
  },
  "luminance": 0.19866
}

Semantic roles & 50–950 ramp

primary
#CB40B9
secondary
#95D29D
accent
#E05B47
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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