#CB42D4#CB42D4

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

Color values

HEX#CB42D4
RGBrgb(203, 66, 212)
HSLhsl(296, 63%, 55%)
HSVhsv(296, 69%, 83%)
CMYKcmyk(4.2%, 68.9%, 0%, 16.9%)
CIE-LABlab(53.33, 70.99, -48.32)
CIE-LCHlch(53.33, 85.87, 325.76°)
OKLaboklab(62.84% 0.1939 -0.1343)
OKLCHoklch(62.84% 0.236 325.3)
XYZxyz(38.4596, 21.3489, 64.3696)
Luminance0.2135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42D4 #4BD442
analogous
#8242D4 #CB42D4 #D44294
triadic
#CB42D4 #D4CB42 #42D4CB
tetradic
#CB42D4 #D48242 #4BD442 #4294D4
square
#CB42D4 #D48242 #4BD442 #4294D4
split-complementary
#CB42D4 #94D442 #42D482
monochromatic
#791D7F #A828B1 #CB42D4 #D974DF #E6A6EB

Accessibility & contrast

On white

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

On black

5.27
#CB42D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42D4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42D4#FFFFFF#000000##000000
##CB42D41.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F75D8
Deuteranopia (green-blind)
#6085D0
Tritanopia (blue-blind)
#D05987
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb42d4;
/* rgb */ color: rgb(203, 66, 212);
/* oklch */ color: oklch(62.8% 0.236 325.3);
Tailwind
colors: {
  custom: {
    50: '#df82e2',
    500: '#cb42d4',
    950: '#000000',
  },
}
SCSS
$custom: #cb42d4;
$custom-light: #df82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42d4",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 296.301,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.62841,
    "c": 0.23583,
    "h": 325.3
  },
  "luminance": 0.21346
}

Semantic roles & 50–950 ramp

primary
#CB42D4
secondary
#9ED89A
accent
#E6424C
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB42D4

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

Preview Lab → · Contrast checker → · Palette generator →

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