#CF42D9#CF42D9

#CF42D9 is a light, highly saturated purple. Relative luminance 0.222; OKLCH L 63.7% C 0.242 H 325.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#CF42D9
RGBrgb(207, 66, 217)
HSLhsl(296, 67%, 55%)
HSVhsv(296, 70%, 85%)
CMYKcmyk(4.6%, 69.6%, 0%, 14.9%)
CIE-LABlab(54.21, 72.69, -49.73)
CIE-LCHlch(54.21, 88.08, 325.63°)
OKLaboklab(63.68% 0.1981 -0.1383)
OKLCHoklch(63.68% 0.242 325.1)
XYZxyz(40.2038, 22.1741, 67.7946)
Luminance0.2217 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42D9 #4CD942
analogous
#8342D9 #CF42D9 #D94298
triadic
#CF42D9 #D9CF42 #42D9CF
tetradic
#CF42D9 #D98342 #4CD942 #4298D9
square
#CF42D9 #D98342 #4CD942 #4298D9
split-complementary
#CF42D9 #98D942 #42D983
monochromatic
#7F1B86 #AF25B9 #CF42D9 #DC75E3 #E9A8ED

Accessibility & contrast

On white

3.86
#CF42D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#CF42D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42D9
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42D9#FFFFFF#000000##000000
##CF42D91.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A77DD
Deuteranopia (green-blind)
#6088D5
Tritanopia (blue-blind)
#D45B89
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cf42d9;
/* rgb */ color: rgb(207, 66, 217);
/* oklch */ color: oklch(63.7% 0.242 325.1);
Tailwind
colors: {
  custom: {
    50: '#e283e5',
    500: '#cf42d9',
    950: '#000000',
  },
}
SCSS
$custom: #cf42d9;
$custom-light: #e283e5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42d9",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 296.026,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.63682,
    "c": 0.24163,
    "h": 325.1
  },
  "luminance": 0.22172
}

Semantic roles & 50–950 ramp

primary
#CF42D9
secondary
#A0DB9C
accent
#E93E4A
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CF42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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