#CF42A8#CF42A8

#CF42A8 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.2% C 0.206 H 340.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#CF42A8
RGBrgb(207, 66, 168)
HSLhsl(317, 59%, 54%)
HSVhsv(317, 68%, 81%)
CMYKcmyk(0%, 68.1%, 18.8%, 18.8%)
CIE-LABlab(51.83, 65.16, -25.17)
CIE-LCHlch(51.83, 69.85, 338.88°)
OKLaboklab(61.19% 0.1944 -0.0677)
OKLCHoklch(61.19% 0.206 340.8)
XYZxyz(34.7492, 19.9923, 39.0670)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42A8 #42CF69
analogous
#B042CF #CF42A8 #CF4261
triadic
#CF42A8 #A8CF42 #42A8CF
tetradic
#CF42A8 #CFB042 #42CF69 #4261CF
square
#CF42A8 #CFB042 #42CF69 #4261CF
split-complementary
#CF42A8 #61CF42 #42CFB0
monochromatic
#781F5F #A92B86 #CF42A8 #DB73BE #E8A4D5

Accessibility & contrast

On white

4.20
#CF42A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#CF42A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42A8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42A8#FFFFFF#000000##000000
##CF42A81.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6DAB
Deuteranopia (green-blind)
#7884A5
Tritanopia (blue-blind)
#DB456F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf42a8;
/* rgb */ color: rgb(207, 66, 168);
/* oklch */ color: oklch(61.2% 0.206 340.8);
Tailwind
colors: {
  custom: {
    50: '#e181c2',
    500: '#cf42a8',
    950: '#000000',
  },
}
SCSS
$custom: #cf42a8;
$custom-light: #e181c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42a8",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 316.596,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61186,
    "c": 0.20584,
    "h": 340.8
  },
  "luminance": 0.19989
}

Semantic roles & 50–950 ramp

primary
#CF42A8
secondary
#98D5A9
accent
#E37145
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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