#CB42DF#CB42DF

#CB42DF is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.5% C 0.245 H 322.3°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#CB42DF
RGBrgb(203, 66, 223)
HSLhsl(292, 71%, 57%)
HSVhsv(292, 70%, 87%)
CMYKcmyk(9%, 70.4%, 0%, 12.5%)
CIE-LABlab(53.95, 72.88, -53.59)
CIE-LCHlch(53.95, 90.46, 323.67°)
OKLaboklab(63.48% 0.1936 -0.1497)
OKLCHoklch(63.48% 0.245 322.3)
XYZxyz(39.8947, 21.9229, 71.9279)
Luminance0.2192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42DF #56DF42
analogous
#7D42DF #CB42DF #DF42A4
triadic
#CB42DF #DFCB42 #42DFCB
tetradic
#CB42DF #DF7D42 #56DF42 #42A4DF
square
#CB42DF #DF7D42 #56DF42 #42A4DF
split-complementary
#CB42DF #A4DF42 #42DF7D
monochromatic
#7F188E #AE21C3 #CB42DF #D976E8 #E8ABF1

Accessibility & contrast

On white

3.90
#CB42DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#CB42DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42DF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42DF#FFFFFF#000000##000000
##CB42DF1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#5886DB
Tritanopia (blue-blind)
#CD5E8D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cb42df;
/* rgb */ color: rgb(203, 66, 223);
/* oklch */ color: oklch(63.5% 0.245 322.3);
Tailwind
colors: {
  custom: {
    50: '#df82ea',
    500: '#cb42df',
    950: '#000000',
  },
}
SCSS
$custom: #cb42df;
$custom-light: #df82ea;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42df",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 292.357,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.6348,
    "c": 0.24469,
    "h": 322.3
  },
  "luminance": 0.21921
}

Semantic roles & 50–950 ramp

primary
#CB42DF
secondary
#A6DF9E
accent
#EE3A51
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CB42DF

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

Preview Lab → · Contrast checker → · Palette generator →

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