#CF42D1#CF42D1

#CF42D1 is a light, highly saturated purple. Relative luminance 0.218; OKLCH L 63.2% C 0.235 H 327.3°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#CF42D1
RGBrgb(207, 66, 209)
HSLhsl(299, 61%, 54%)
HSVhsv(299, 68%, 82%)
CMYKcmyk(1%, 68.4%, 0%, 18%)
CIE-LABlab(53.78, 71.37, -45.86)
CIE-LCHlch(53.78, 84.83, 327.28°)
OKLaboklab(63.23% 0.1981 -0.127)
OKLCHoklch(63.23% 0.235 327.3)
XYZxyz(39.1884, 21.7680, 62.4468)
Luminance0.2177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42D1 #44D142
analogous
#8842D1 #CF42D1 #D1428C
triadic
#CF42D1 #D1CF42 #42D1CF
tetradic
#CF42D1 #D18842 #44D142 #428CD1
square
#CF42D1 #D18842 #44D142 #428CD1
split-complementary
#CF42D1 #8CD142 #42D188
monochromatic
#791E7B #AA2AAC #CF42D1 #DC73DD #E8A4E9

Accessibility & contrast

On white

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

On black

5.35
#CF42D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42D1
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42D1#FFFFFF#000000##000000
##CF42D11.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2975D5
Deuteranopia (green-blind)
#6587CD
Tritanopia (blue-blind)
#D55785
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cf42d1;
/* rgb */ color: rgb(207, 66, 209);
/* oklch */ color: oklch(63.2% 0.235 327.3);
Tailwind
colors: {
  custom: {
    50: '#e182df',
    500: '#cf42d1',
    950: '#000000',
  },
}
SCSS
$custom: #cf42d1;
$custom-light: #e182df;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42d1",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 299.161,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63233,
    "c": 0.23537,
    "h": 327.3
  },
  "luminance": 0.21765
}

Semantic roles & 50–950 ramp

primary
#CF42D1
secondary
#9AD699
accent
#E44446
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CF42D1

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

Preview Lab → · Contrast checker → · Palette generator →

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