#CF42A9#CF42A9

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

Color values

HEX#CF42A9
RGBrgb(207, 66, 169)
HSLhsl(316, 59%, 54%)
HSVhsv(316, 68%, 81%)
CMYKcmyk(0%, 68.1%, 18.4%, 18.8%)
CIE-LABlab(51.87, 65.30, -25.69)
CIE-LCHlch(51.87, 70.17, 338.52°)
OKLaboklab(61.23% 0.1945 -0.0692)
OKLCHoklch(61.23% 0.206 340.4)
XYZxyz(34.8427, 20.0297, 39.5595)
Luminance0.2003 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42A9 #42CF68
analogous
#AE42CF #CF42A9 #CF4262
triadic
#CF42A9 #A9CF42 #42A9CF
tetradic
#CF42A9 #CFAE42 #42CF68 #4262CF
square
#CF42A9 #CFAE42 #42CF68 #4262CF
split-complementary
#CF42A9 #62CF42 #42CFAE
monochromatic
#781F60 #A92B87 #CF42A9 #DB73BF #E8A4D5

Accessibility & contrast

On white

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

On black

5.01
#CF42A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42A9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42A9#FFFFFF#000000##000000
##CF42A91.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6DAC
Deuteranopia (green-blind)
#7784A6
Tritanopia (blue-blind)
#DB4570
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf42a9;
/* rgb */ color: rgb(207, 66, 169);
/* oklch */ color: oklch(61.2% 0.206 340.4);
Tailwind
colors: {
  custom: {
    50: '#e181c2',
    500: '#cf42a9',
    950: '#000000',
  },
}
SCSS
$custom: #cf42a9;
$custom-light: #e181c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42a9",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 316.17,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61231,
    "c": 0.20648,
    "h": 340.4
  },
  "luminance": 0.20026
}

Semantic roles & 50–950 ramp

primary
#CF42A9
secondary
#98D5A8
accent
#E37045
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF42A9

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

Preview Lab → · Contrast checker → · Palette generator →

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