#CB42D3#CB42D3

#CB42D3 is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.8% C 0.235 H 325.6°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#CB42D3
RGBrgb(203, 66, 211)
HSLhsl(297, 62%, 54%)
HSVhsv(297, 69%, 83%)
CMYKcmyk(3.8%, 68.7%, 0%, 17.3%)
CIE-LABlab(53.27, 70.82, -47.84)
CIE-LCHlch(53.27, 85.46, 325.96°)
OKLaboklab(62.78% 0.1939 -0.1329)
OKLCHoklch(62.78% 0.235 325.6)
XYZxyz(38.3339, 21.2986, 63.7073)
Luminance0.2130 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42D3 #4AD342
analogous
#8342D3 #CB42D3 #D34292
triadic
#CB42D3 #D3CB42 #42D3CB
tetradic
#CB42D3 #D38342 #4AD342 #4292D3
square
#CB42D3 #D38342 #4AD342 #4292D3
split-complementary
#CB42D3 #92D342 #42D383
monochromatic
#781D7D #A829AF #CB42D3 #D974DF #E6A5EA

Accessibility & contrast

On white

3.99
#CB42D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#CB42D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42D3
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42D3#FFFFFF#000000##000000
##CB42D31.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2174D7
Deuteranopia (green-blind)
#6085CF
Tritanopia (blue-blind)
#D05986
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb42d3;
/* rgb */ color: rgb(203, 66, 211);
/* oklch */ color: oklch(62.8% 0.235 325.6);
Tailwind
colors: {
  custom: {
    50: '#df82e1',
    500: '#cb42d3',
    950: '#000000',
  },
}
SCSS
$custom: #cb42d3;
$custom-light: #df82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42d3",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 296.69,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62784,
    "c": 0.23504,
    "h": 325.6
  },
  "luminance": 0.21296
}

Semantic roles & 50–950 ramp

primary
#CB42D3
secondary
#9DD79A
accent
#E5424B
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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