#CB40C2#CB40C2

#CB40C2 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.224 H 330.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CB40C2
RGBrgb(203, 64, 194)
HSLhsl(304, 57%, 52%)
HSVhsv(304, 68%, 80%)
CMYKcmyk(0%, 68.5%, 4.4%, 20.4%)
CIE-LABlab(52.13, 68.76, -39.89)
CIE-LCHlch(52.13, 79.50, 329.88°)
OKLaboklab(61.67% 0.1954 -0.1098)
OKLCHoklch(61.67% 0.224 330.7)
XYZxyz(36.1995, 20.2611, 53.0327)
Luminance0.2026 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40C2 #40CB49
analogous
#8F40CB #CB40C2 #CB407C
triadic
#CB40C2 #C2CB40 #40C2CB
tetradic
#CB40C2 #CB8F40 #40CB49 #407CCB
square
#CB40C2 #CB8F40 #40CB49 #407CCB
split-complementary
#CB40C2 #7CCB40 #40CB8F
monochromatic
#721F6C #A22C9A #CB40C2 #D870D1 #E5A0E1

Accessibility & contrast

On white

4.16
#CB40C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CB40C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40C2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40C2#FFFFFF#000000##000000
##CB40C21.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3470C6
Deuteranopia (green-blind)
#6983BE
Tritanopia (blue-blind)
#D3507C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb40c2;
/* rgb */ color: rgb(203, 64, 194);
/* oklch */ color: oklch(61.7% 0.224 330.7);
Tailwind
colors: {
  custom: {
    50: '#de80d5',
    500: '#cb40c2',
    950: '#000000',
  },
}
SCSS
$custom: #cb40c2;
$custom-light: #de80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40c2",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 303.885,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61674,
    "c": 0.22419,
    "h": 330.7
  },
  "luminance": 0.20258
}

Semantic roles & 50–950 ramp

primary
#CB40C2
secondary
#95D299
accent
#E05147
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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