#CB42E2#CB42E2

#CB42E2 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.7% C 0.247 H 321.5°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#CB42E2
RGBrgb(203, 66, 226)
HSLhsl(291, 73%, 57%)
HSVhsv(291, 71%, 89%)
CMYKcmyk(10.2%, 70.8%, 0%, 11.4%)
CIE-LABlab(54.12, 73.40, -55.01)
CIE-LCHlch(54.12, 91.73, 323.15°)
OKLaboklab(63.66% 0.1934 -0.1538)
OKLCHoklch(63.66% 0.247 321.5)
XYZxyz(40.3028, 22.0861, 74.0769)
Luminance0.2208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42E2 #59E242
analogous
#7B42E2 #CB42E2 #E242A9
triadic
#CB42E2 #E2CB42 #42E2CB
tetradic
#CB42E2 #E27B42 #59E242 #42A9E2
square
#CB42E2 #E27B42 #59E242 #42A9E2
split-complementary
#CB42E2 #A9E242 #42E27B
monochromatic
#811793 #B01FC8 #CB42E2 #DA77EA #E8ACF2

Accessibility & contrast

On white

3.88
#CB42E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#CB42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42E2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42E2#FFFFFF#000000##000000
##CB42E21.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#5686DE
Tritanopia (blue-blind)
#CD608E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cb42e2;
/* rgb */ color: rgb(203, 66, 226);
/* oklch */ color: oklch(63.7% 0.247 321.5);
Tailwind
colors: {
  custom: {
    50: '#df83ec',
    500: '#cb42e2',
    950: '#000000',
  },
}
SCSS
$custom: #cb42e2;
$custom-light: #df83ec;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42e2",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 291.375,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6366,
    "c": 0.24713,
    "h": 321.5
  },
  "luminance": 0.22084
}

Semantic roles & 50–950 ramp

primary
#CB42E2
secondary
#A9E09F
accent
#F03852
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CB42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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