#CF42C8#CF42C8

#CF42C8 is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.7% C 0.228 H 330.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#CF42C8
RGBrgb(207, 66, 200)
HSLhsl(303, 59%, 54%)
HSVhsv(303, 68%, 81%)
CMYKcmyk(0%, 68.1%, 3.4%, 18.8%)
CIE-LABlab(53.31, 69.92, -41.44)
CIE-LCHlch(53.31, 81.27, 329.34°)
OKLaboklab(62.75% 0.1979 -0.1142)
OKLCHoklch(62.75% 0.228 330)
XYZxyz(38.1054, 21.3348, 56.7434)
Luminance0.2133 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42C8 #42CF49
analogous
#8F42CF #CF42C8 #CF4281
triadic
#CF42C8 #C8CF42 #42C8CF
tetradic
#CF42C8 #CF8F42 #42CF49 #4281CF
square
#CF42C8 #CF8F42 #42CF49 #4281CF
split-complementary
#CF42C8 #81CF42 #42CF8F
monochromatic
#781F74 #A92BA3 #CF42C8 #DB73D6 #E8A4E4

Accessibility & contrast

On white

3.99
#CF42C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#CF42C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42C8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42C8#FFFFFF#000000##000000
##CF42C81.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3473CC
Deuteranopia (green-blind)
#6A86C4
Tritanopia (blue-blind)
#D65380
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cf42c8;
/* rgb */ color: rgb(207, 66, 200);
/* oklch */ color: oklch(62.7% 0.228 330.0);
Tailwind
colors: {
  custom: {
    50: '#e182d9',
    500: '#cf42c8',
    950: '#000000',
  },
}
SCSS
$custom: #cf42c8;
$custom-light: #e182d9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42c8",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 302.979,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.62747,
    "c": 0.22847,
    "h": 330
  },
  "luminance": 0.21332
}

Semantic roles & 50–950 ramp

primary
#CF42C8
secondary
#98D59B
accent
#E34D45
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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