#CF42D8#CF42D8

#CF42D8 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.6% C 0.241 H 325.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#CF42D8
RGBrgb(207, 66, 216)
HSLhsl(296, 66%, 55%)
HSVhsv(296, 69%, 85%)
CMYKcmyk(4.2%, 69.4%, 0%, 15.3%)
CIE-LABlab(54.16, 72.53, -49.25)
CIE-LCHlch(54.16, 87.67, 325.82°)
OKLaboklab(63.63% 0.1982 -0.1369)
OKLCHoklch(63.63% 0.241 325.4)
XYZxyz(40.0741, 22.1223, 67.1117)
Luminance0.2212 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42D8 #4BD842
analogous
#8442D8 #CF42D8 #D84296
triadic
#CF42D8 #D8CF42 #42D8CF
tetradic
#CF42D8 #D88442 #4BD842 #4296D8
square
#CF42D8 #D88442 #4BD842 #4296D8
split-complementary
#CF42D8 #96D842 #42D884
monochromatic
#7E1B84 #AE26B7 #CF42D8 #DC75E2 #E9A7ED

Accessibility & contrast

On white

3.87
#CF42D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#CF42D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42D8
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42D8#FFFFFF#000000##000000
##CF42D81.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C76DC
Deuteranopia (green-blind)
#6187D4
Tritanopia (blue-blind)
#D45A89
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cf42d8;
/* rgb */ color: rgb(207, 66, 216);
/* oklch */ color: oklch(63.6% 0.241 325.4);
Tailwind
colors: {
  custom: {
    50: '#e283e5',
    500: '#cf42d8',
    950: '#000000',
  },
}
SCSS
$custom: #cf42d8;
$custom-light: #e283e5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42d8",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 296.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.63625,
    "c": 0.24084,
    "h": 325.4
  },
  "luminance": 0.2212
}

Semantic roles & 50–950 ramp

primary
#CF42D8
secondary
#9FDA9C
accent
#E93F49
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CF42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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