#CF42C7#CF42C7

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

Color values

HEX#CF42C7
RGBrgb(207, 66, 199)
HSLhsl(303, 59%, 54%)
HSVhsv(303, 68%, 81%)
CMYKcmyk(0%, 68.1%, 3.9%, 18.8%)
CIE-LABlab(53.26, 69.76, -40.94)
CIE-LCHlch(53.26, 80.89, 329.59°)
OKLaboklab(62.69% 0.1978 -0.1128)
OKLCHoklch(62.69% 0.228 330.3)
XYZxyz(37.9890, 21.2882, 56.1299)
Luminance0.2129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42C7 #42CF4A
analogous
#9042CF #CF42C7 #CF4280
triadic
#CF42C7 #C7CF42 #42C7CF
tetradic
#CF42C7 #CF9042 #42CF4A #4280CF
square
#CF42C7 #CF9042 #42CF4A #4280CF
split-complementary
#CF42C7 #80CF42 #42CF90
monochromatic
#781F73 #A92BA2 #CF42C7 #DB73D5 #E8A4E4

Accessibility & contrast

On white

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

On black

5.26
#CF42C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42C7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42C7#FFFFFF#000000##000000
##CF42C71.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3573CB
Deuteranopia (green-blind)
#6B86C3
Tritanopia (blue-blind)
#D75380
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cf42c7;
/* rgb */ color: rgb(207, 66, 199);
/* oklch */ color: oklch(62.7% 0.228 330.3);
Tailwind
colors: {
  custom: {
    50: '#e182d8',
    500: '#cf42c7',
    950: '#000000',
  },
}
SCSS
$custom: #cf42c7;
$custom-light: #e182d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42c7",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 303.404,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.62694,
    "c": 0.22772,
    "h": 330.3
  },
  "luminance": 0.21285
}

Semantic roles & 50–950 ramp

primary
#CF42C7
secondary
#98D59C
accent
#E34E45
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CF42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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