#CF42E5#CF42E5

#CF42E5 is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 64.4% C 0.251 H 321.9°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#CF42E5
RGBrgb(207, 66, 229)
HSLhsl(292, 76%, 58%)
HSVhsv(292, 71%, 90%)
CMYKcmyk(9.6%, 71.2%, 0%, 10.2%)
CIE-LABlab(54.89, 74.75, -55.44)
CIE-LCHlch(54.89, 93.06, 323.44°)
OKLaboklab(64.38% 0.1977 -0.1549)
OKLCHoklch(64.38% 0.251 321.9)
XYZxyz(41.8217, 22.8213, 76.3156)
Luminance0.2282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42E5 #58E542
analogous
#7D42E5 #CF42E5 #E542A9
triadic
#CF42E5 #E5CF42 #42E5CF
tetradic
#CF42E5 #E57D42 #58E542 #42A9E5
square
#CF42E5 #E57D42 #58E542 #42A9E5
split-complementary
#CF42E5 #A9E542 #42E57D
monochromatic
#861598 #B61CCE #CF42E5 #DD78EC #EAAEF4

Accessibility & contrast

On white

3.77
#CF42E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#CF42E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42E5
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42E5#FFFFFF#000000##000000
##CF42E51.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EA
Deuteranopia (green-blind)
#5889E1
Tritanopia (blue-blind)
#D16090
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cf42e5;
/* rgb */ color: rgb(207, 66, 229);
/* oklch */ color: oklch(64.4% 0.251 321.9);
Tailwind
colors: {
  custom: {
    50: '#e283ee',
    500: '#cf42e5',
    950: '#000000',
  },
}
SCSS
$custom: #cf42e5;
$custom-light: #e283ee;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42e5",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 291.902,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.64383,
    "c": 0.25121,
    "h": 321.9
  },
  "luminance": 0.22819
}

Semantic roles & 50–950 ramp

primary
#CF42E5
secondary
#AAE2A1
accent
#F2354F
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CF42E5

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

Preview Lab → · Contrast checker → · Palette generator →

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