#CB42E5#CB42E5

#CB42E5 is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.8% C 0.250 H 320.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#CB42E5
RGBrgb(203, 66, 229)
HSLhsl(290, 76%, 58%)
HSVhsv(290, 71%, 90%)
CMYKcmyk(11.4%, 71.2%, 0%, 10.2%)
CIE-LABlab(54.29, 73.93, -56.42)
CIE-LCHlch(54.29, 93.00, 322.65°)
OKLaboklab(63.84% 0.1933 -0.1579)
OKLCHoklch(63.84% 0.25 320.7)
XYZxyz(40.7180, 22.2522, 76.2639)
Luminance0.2225 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42E5 #5CE542
analogous
#7942E5 #CB42E5 #E542AE
triadic
#CB42E5 #E5CB42 #42E5CB
tetradic
#CB42E5 #E57942 #5CE542 #42AEE5
square
#CB42E5 #E57942 #5CE542 #42AEE5
split-complementary
#CB42E5 #AEE542 #42E579
monochromatic
#831598 #B11CCE #CB42E5 #DA78EC #E9AEF4

Accessibility & contrast

On white

3.85
#CB42E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#CB42E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42E5
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42E5#FFFFFF#000000##000000
##CB42E51.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EA
Deuteranopia (green-blind)
#5487E1
Tritanopia (blue-blind)
#CC6190
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cb42e5;
/* rgb */ color: rgb(203, 66, 229);
/* oklch */ color: oklch(63.8% 0.250 320.7);
Tailwind
colors: {
  custom: {
    50: '#df83ee',
    500: '#cb42e5',
    950: '#000000',
  },
}
SCSS
$custom: #cb42e5;
$custom-light: #df83ee;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42e5",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 290.429,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.63841,
    "c": 0.24958,
    "h": 320.7
  },
  "luminance": 0.2225
}

Semantic roles & 50–950 ramp

primary
#CB42E5
secondary
#ABE2A1
accent
#F23554
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CB42E5

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

Preview Lab → · Contrast checker → · Palette generator →

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