#CF42B2#CF42B2

#CF42B2 is a mid, highly saturated pink. Relative luminance 0.204; OKLCH L 61.6% C 0.213 H 337.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CF42B2
RGBrgb(207, 66, 178)
HSLhsl(312, 59%, 54%)
HSVhsv(312, 68%, 81%)
CMYKcmyk(0%, 68.1%, 14%, 18.8%)
CIE-LABlab(52.26, 66.57, -30.35)
CIE-LCHlch(52.26, 73.17, 335.49°)
OKLaboklab(61.65% 0.1959 -0.0824)
OKLCHoklch(61.65% 0.213 337.2)
XYZxyz(35.7168, 20.3794, 44.1634)
Luminance0.2038 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42B2 #42CF5F
analogous
#A542CF #CF42B2 #CF426B
triadic
#CF42B2 #B2CF42 #42B2CF
tetradic
#CF42B2 #CFA542 #42CF5F #426BCF
square
#CF42B2 #CFA542 #42CF5F #426BCF
split-complementary
#CF42B2 #6BCF42 #42CFA5
monochromatic
#781F66 #A92B8F #CF42B2 #DB73C6 #E8A4DA

Accessibility & contrast

On white

4.14
#CF42B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#CF42B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42B2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42B2#FFFFFF#000000##000000
##CF42B21.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#466FB5
Deuteranopia (green-blind)
#7484AF
Tritanopia (blue-blind)
#DA4974
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf42b2;
/* rgb */ color: rgb(207, 66, 178);
/* oklch */ color: oklch(61.6% 0.213 337.2);
Tailwind
colors: {
  custom: {
    50: '#e181c9',
    500: '#cf42b2',
    950: '#000000',
  },
}
SCSS
$custom: #cf42b2;
$custom-light: #e181c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42b2",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 312.34,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61645,
    "c": 0.21252,
    "h": 337.2
  },
  "luminance": 0.20376
}

Semantic roles & 50–950 ramp

primary
#CF42B2
secondary
#98D5A5
accent
#E36645
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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