#CF42C2#CF42C2

#CF42C2 is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.4% C 0.224 H 331.9°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#CF42C2
RGBrgb(207, 66, 194)
HSLhsl(306, 59%, 54%)
HSVhsv(306, 68%, 81%)
CMYKcmyk(0%, 68.1%, 6.3%, 18.8%)
CIE-LABlab(53.01, 68.97, -38.46)
CIE-LCHlch(53.01, 78.97, 330.86°)
OKLaboklab(62.43% 0.1975 -0.1056)
OKLCHoklch(62.43% 0.224 331.9)
XYZxyz(37.4180, 21.0598, 53.1227)
Luminance0.2106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42C2 #42CF4F
analogous
#9542CF #CF42C2 #CF427B
triadic
#CF42C2 #C2CF42 #42C2CF
tetradic
#CF42C2 #CF9542 #42CF4F #427BCF
square
#CF42C2 #CF9542 #42CF4F #427BCF
split-complementary
#CF42C2 #7BCF42 #42CF95
monochromatic
#781F70 #A92B9D #CF42C2 #DB73D2 #E8A4E2

Accessibility & contrast

On white

4.03
#CF42C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#CF42C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42C2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42C2#FFFFFF#000000##000000
##CF42C21.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A72C6
Deuteranopia (green-blind)
#6D86BE
Tritanopia (blue-blind)
#D7517D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cf42c2;
/* rgb */ color: rgb(207, 66, 194);
/* oklch */ color: oklch(62.4% 0.224 331.9);
Tailwind
colors: {
  custom: {
    50: '#e182d5',
    500: '#cf42c2',
    950: '#000000',
  },
}
SCSS
$custom: #cf42c2;
$custom-light: #e182d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42c2",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 305.532,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.62434,
    "c": 0.22397,
    "h": 331.9
  },
  "luminance": 0.21057
}

Semantic roles & 50–950 ramp

primary
#CF42C2
secondary
#98D59E
accent
#E35445
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CF42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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