#CB42D2#CB42D2

#CB42D2 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.7% C 0.234 H 325.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#CB42D2
RGBrgb(203, 66, 210)
HSLhsl(297, 62%, 54%)
HSVhsv(297, 69%, 82%)
CMYKcmyk(3.3%, 68.6%, 0%, 17.6%)
CIE-LABlab(53.22, 70.65, -47.35)
CIE-LCHlch(53.22, 85.05, 326.17°)
OKLaboklab(62.73% 0.1939 -0.1315)
OKLCHoklch(62.73% 0.234 325.9)
XYZxyz(38.2089, 21.2486, 63.0492)
Luminance0.2125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42D2 #49D242
analogous
#8342D2 #CB42D2 #D24291
triadic
#CB42D2 #D2CB42 #42D2CB
tetradic
#CB42D2 #D28342 #49D242 #4291D2
square
#CB42D2 #D28342 #49D242 #4291D2
split-complementary
#CB42D2 #91D242 #42D283
monochromatic
#771E7C #A729AD #CB42D2 #D973DE #E6A5EA

Accessibility & contrast

On white

4.00
#CB42D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#CB42D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42D2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42D2#FFFFFF#000000##000000
##CB42D21.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2274D6
Deuteranopia (green-blind)
#6185CE
Tritanopia (blue-blind)
#D05985
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb42d2;
/* rgb */ color: rgb(203, 66, 210);
/* oklch */ color: oklch(62.7% 0.234 325.9);
Tailwind
colors: {
  custom: {
    50: '#df82e0',
    500: '#cb42d2',
    950: '#000000',
  },
}
SCSS
$custom: #cb42d2;
$custom-light: #df82e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42d2",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 297.083,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.62728,
    "c": 0.23425,
    "h": 325.9
  },
  "luminance": 0.21246
}

Semantic roles & 50–950 ramp

primary
#CB42D2
secondary
#9CD799
accent
#E5434B
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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