#CF42A7#CF42A7

#CF42A7 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.1% C 0.205 H 341.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#CF42A7
RGBrgb(207, 66, 167)
HSLhsl(317, 59%, 54%)
HSVhsv(317, 68%, 81%)
CMYKcmyk(0%, 68.1%, 19.3%, 18.8%)
CIE-LABlab(51.79, 65.02, -24.65)
CIE-LCHlch(51.79, 69.54, 339.24°)
OKLaboklab(61.14% 0.1942 -0.0662)
OKLCHoklch(61.14% 0.205 341.2)
XYZxyz(34.6564, 19.9552, 38.5783)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42A7 #42CF6A
analogous
#B042CF #CF42A7 #CF4260
triadic
#CF42A7 #A7CF42 #42A7CF
tetradic
#CF42A7 #CFB042 #42CF6A #4260CF
square
#CF42A7 #CFB042 #42CF6A #4260CF
split-complementary
#CF42A7 #60CF42 #42CFB0
monochromatic
#781F5F #A92B85 #CF42A7 #DB73BE #E8A4D4

Accessibility & contrast

On white

4.21
#CF42A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#CF42A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42A7
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42A7#FFFFFF#000000##000000
##CF42A71.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6DAA
Deuteranopia (green-blind)
#7884A4
Tritanopia (blue-blind)
#DB456F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf42a7;
/* rgb */ color: rgb(207, 66, 167);
/* oklch */ color: oklch(61.1% 0.205 341.2);
Tailwind
colors: {
  custom: {
    50: '#e181c1',
    500: '#cf42a7',
    950: '#000000',
  },
}
SCSS
$custom: #cf42a7;
$custom-light: #e181c1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42a7",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 317.021,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61142,
    "c": 0.20519,
    "h": 341.2
  },
  "luminance": 0.19952
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF42A7

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

Preview Lab → · Contrast checker → · Palette generator →

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