#CF42A5#CF42A5

#CF42A5 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.1% C 0.204 H 341.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#CF42A5
RGBrgb(207, 66, 165)
HSLhsl(318, 59%, 54%)
HSVhsv(318, 68%, 81%)
CMYKcmyk(0%, 68.1%, 20.3%, 18.8%)
CIE-LABlab(51.70, 64.75, -23.60)
CIE-LCHlch(51.70, 68.92, 339.97°)
OKLaboklab(61.05% 0.1939 -0.0633)
OKLCHoklch(61.05% 0.204 341.9)
XYZxyz(34.4729, 19.8818, 37.6121)
Luminance0.1988 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42A5 #42CF6C
analogous
#B242CF #CF42A5 #CF425E
triadic
#CF42A5 #A5CF42 #42A5CF
tetradic
#CF42A5 #CFB242 #42CF6C #425ECF
square
#CF42A5 #CFB242 #42CF6C #425ECF
split-complementary
#CF42A5 #5ECF42 #42CFB2
monochromatic
#781F5D #A92B83 #CF42A5 #DB73BC #E8A4D3

Accessibility & contrast

On white

4.22
#CF42A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#CF42A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42A5
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42A5#FFFFFF#000000##000000
##CF42A51.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6DA8
Deuteranopia (green-blind)
#7984A2
Tritanopia (blue-blind)
#DB446E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf42a5;
/* rgb */ color: rgb(207, 66, 165);
/* oklch */ color: oklch(61.1% 0.204 341.9);
Tailwind
colors: {
  custom: {
    50: '#e181c0',
    500: '#cf42a5',
    950: '#000000',
  },
}
SCSS
$custom: #cf42a5;
$custom-light: #e181c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42a5",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 317.872,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61054,
    "c": 0.20392,
    "h": 341.9
  },
  "luminance": 0.19878
}

Semantic roles & 50–950 ramp

primary
#CF42A5
secondary
#98D5AA
accent
#E37445
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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