#CB42CB#CB42CB

#CB42CB is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.3% C 0.229 H 327.9°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#CB42CB
RGBrgb(203, 66, 203)
HSLhsl(300, 57%, 53%)
HSVhsv(300, 67%, 80%)
CMYKcmyk(0%, 67.5%, 0%, 20.4%)
CIE-LABlab(52.85, 69.49, -43.94)
CIE-LCHlch(52.85, 82.22, 327.69°)
OKLaboklab(62.34% 0.1938 -0.1216)
OKLCHoklch(62.34% 0.229 327.9)
XYZxyz(37.3558, 20.9073, 58.5563)
Luminance0.2091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42CB #42CB42
analogous
#8642CB #CB42CB #CB4286
triadic
#CB42CB #CBCB42 #42CBCB
tetradic
#CB42CB #CB8642 #42CB42 #4286CB
square
#CB42CB #CB8642 #42CB42 #4286CB
split-complementary
#CB42CB #86CB42 #42CB86
monochromatic
#732073 #A32DA3 #CB42CB #D872D8 #E5A2E5

Accessibility & contrast

On white

4.05
#CB42CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#CB42CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42CB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42CB#FFFFFF#000000##000000
##CB42CB1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D73CF
Deuteranopia (green-blind)
#6584C7
Tritanopia (blue-blind)
#D15682
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cb42cb;
/* rgb */ color: rgb(203, 66, 203);
/* oklch */ color: oklch(62.3% 0.229 327.9);
Tailwind
colors: {
  custom: {
    50: '#de82db',
    500: '#cb42cb',
    950: '#000000',
  },
}
SCSS
$custom: #cb42cb;
$custom-light: #de82db;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42cb",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 300,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.6234,
    "c": 0.22874,
    "h": 327.9
  },
  "luminance": 0.20905
}

Semantic roles & 50–950 ramp

primary
#CB42CB
secondary
#97D297
accent
#E04848
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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