#CB40CB#CB40CB

#CB40CB is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.2% C 0.231 H 327.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#CB40CB
RGBrgb(203, 64, 203)
HSLhsl(300, 57%, 52%)
HSVhsv(300, 68%, 80%)
CMYKcmyk(0%, 68.5%, 0%, 20.4%)
CIE-LABlab(52.59, 70.21, -44.34)
CIE-LCHlch(52.59, 83.04, 327.72°)
OKLaboklab(62.16% 0.1958 -0.1227)
OKLCHoklch(62.16% 0.231 327.9)
XYZxyz(37.2410, 20.6777, 58.5180)
Luminance0.2067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40CB #40CB40
analogous
#8640CB #CB40CB #CB4086
triadic
#CB40CB #CBCB40 #40CBCB
tetradic
#CB40CB #CB8640 #40CB40 #4086CB
square
#CB40CB #CB8640 #40CB40 #4086CB
split-complementary
#CB40CB #86CB40 #40CB86
monochromatic
#721F72 #A22CA2 #CB40CB #D870D8 #E5A0E5

Accessibility & contrast

On white

4.09
#CB40CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#CB40CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40CB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40CB#FFFFFF#000000##000000
##CB40CB1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2972CF
Deuteranopia (green-blind)
#6484C7
Tritanopia (blue-blind)
#D15481
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb40cb;
/* rgb */ color: rgb(203, 64, 203);
/* oklch */ color: oklch(62.2% 0.231 327.9);
Tailwind
colors: {
  custom: {
    50: '#df81db',
    500: '#cb40cb',
    950: '#000000',
  },
}
SCSS
$custom: #cb40cb;
$custom-light: #df81db;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40cb",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 300,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.62158,
    "c": 0.23106,
    "h": 327.9
  },
  "luminance": 0.20675
}

Semantic roles & 50–950 ramp

primary
#CB40CB
secondary
#95D295
accent
#E04747
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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