#CF42A2#CF42A2

#CF42A2 is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 60.9% C 0.202 H 343.1°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#CF42A2
RGBrgb(207, 66, 162)
HSLhsl(319, 59%, 54%)
HSVhsv(319, 68%, 81%)
CMYKcmyk(0%, 68.1%, 21.7%, 18.8%)
CIE-LABlab(51.58, 64.35, -22.02)
CIE-LCHlch(51.58, 68.01, 341.11°)
OKLaboklab(60.92% 0.1933 -0.0589)
OKLCHoklch(60.92% 0.202 343.1)
XYZxyz(34.2031, 19.7738, 36.1909)
Luminance0.1977 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42A2 #42CF6F
analogous
#B542CF #CF42A2 #CF425B
triadic
#CF42A2 #A2CF42 #42A2CF
tetradic
#CF42A2 #CFB542 #42CF6F #425BCF
square
#CF42A2 #CFB542 #42CF6F #425BCF
split-complementary
#CF42A2 #5BCF42 #42CFB5
monochromatic
#781F5C #A92B81 #CF42A2 #DB73BA #E8A4D2

Accessibility & contrast

On white

4.24
#CF42A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#CF42A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42A2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42A2#FFFFFF#000000##000000
##CF42A21.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F6CA5
Deuteranopia (green-blind)
#7A839F
Tritanopia (blue-blind)
#DC426C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf42a2;
/* rgb */ color: rgb(207, 66, 162);
/* oklch */ color: oklch(60.9% 0.202 343.1);
Tailwind
colors: {
  custom: {
    50: '#e281bd',
    500: '#cf42a2',
    950: '#000000',
  },
}
SCSS
$custom: #cf42a2;
$custom-light: #e281bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42a2",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 319.149,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.60924,
    "c": 0.20205,
    "h": 343.1
  },
  "luminance": 0.1977
}

Semantic roles & 50–950 ramp

primary
#CF42A2
secondary
#98D5AB
accent
#E37745
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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