#CB40D1#CB40D1

#CB40D1 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.5% C 0.236 H 326.2°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#CB40D1
RGBrgb(203, 64, 209)
HSLhsl(298, 61%, 54%)
HSVhsv(298, 69%, 82%)
CMYKcmyk(2.9%, 69.4%, 0%, 18%)
CIE-LABlab(52.92, 71.19, -47.27)
CIE-LCHlch(52.92, 85.46, 326.42°)
OKLaboklab(62.49% 0.1958 -0.1312)
OKLCHoklch(62.49% 0.236 326.2)
XYZxyz(37.9699, 20.9693, 62.3568)
Luminance0.2097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40D1 #46D140
analogous
#8240D1 #CB40D1 #D1408E
triadic
#CB40D1 #D1CB40 #40D1CB
tetradic
#CB40D1 #D18240 #46D140 #408ED1
square
#CB40D1 #D18240 #46D140 #408ED1
split-complementary
#CB40D1 #8ED140 #40D182
monochromatic
#761D79 #A529AB #CB40D1 #D871DD #E6A3E9

Accessibility & contrast

On white

4.04
#CB40D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#CB40D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40D1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40D1#FFFFFF#000000##000000
##CB40D11.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2073D5
Deuteranopia (green-blind)
#6084CD
Tritanopia (blue-blind)
#D05784
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cb40d1;
/* rgb */ color: rgb(203, 64, 209);
/* oklch */ color: oklch(62.5% 0.236 326.2);
Tailwind
colors: {
  custom: {
    50: '#df81e0',
    500: '#cb40d1',
    950: '#000000',
  },
}
SCSS
$custom: #cb40d1;
$custom-light: #df81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40d1",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 297.517,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.62492,
    "c": 0.23573,
    "h": 326.2
  },
  "luminance": 0.20967
}

Semantic roles & 50–950 ramp

primary
#CB40D1
secondary
#9AD597
accent
#E4444A
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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