#CF42D2#CF42D2

#CF42D2 is a light, highly saturated purple. Relative luminance 0.218; OKLCH L 63.3% C 0.236 H 327.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#CF42D2
RGBrgb(207, 66, 210)
HSLhsl(299, 62%, 54%)
HSVhsv(299, 69%, 82%)
CMYKcmyk(1.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(53.83, 71.53, -46.34)
CIE-LCHlch(53.83, 85.23, 327.06°)
OKLaboklab(63.29% 0.1982 -0.1284)
OKLCHoklch(63.29% 0.236 327)
XYZxyz(39.3126, 21.8176, 63.1009)
Luminance0.2182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42D2 #45D242
analogous
#8742D2 #CF42D2 #D2428D
triadic
#CF42D2 #D2CF42 #42D2CF
tetradic
#CF42D2 #D28742 #45D242 #428DD2
square
#CF42D2 #D28742 #45D242 #428DD2
split-complementary
#CF42D2 #8DD242 #42D287
monochromatic
#7A1E7C #AB29AD #CF42D2 #DC73DE #E8A5EA

Accessibility & contrast

On white

3.92
#CF42D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#CF42D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42D2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42D2#FFFFFF#000000##000000
##CF42D21.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2775D6
Deuteranopia (green-blind)
#6587CE
Tritanopia (blue-blind)
#D55886
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cf42d2;
/* rgb */ color: rgb(207, 66, 210);
/* oklch */ color: oklch(63.3% 0.236 327.0);
Tailwind
colors: {
  custom: {
    50: '#e182e0',
    500: '#cf42d2',
    950: '#000000',
  },
}
SCSS
$custom: #cf42d2;
$custom-light: #e182e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42d2",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 298.75,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.63288,
    "c": 0.23614,
    "h": 327
  },
  "luminance": 0.21815
}

Semantic roles & 50–950 ramp

primary
#CF42D2
secondary
#9BD799
accent
#E54347
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CF42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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