#CF42AB#CF42AB

#CF42AB is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.3% C 0.208 H 339.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#CF42AB
RGBrgb(207, 66, 171)
HSLhsl(315, 59%, 54%)
HSVhsv(315, 68%, 81%)
CMYKcmyk(0%, 68.1%, 17.4%, 18.8%)
CIE-LABlab(51.96, 65.58, -26.73)
CIE-LCHlch(51.96, 70.82, 337.82°)
OKLaboklab(61.32% 0.1949 -0.0721)
OKLCHoklch(61.32% 0.208 339.7)
XYZxyz(35.0319, 20.1054, 40.5559)
Luminance0.2010 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42AB #42CF66
analogous
#AC42CF #CF42AB #CF4264
triadic
#CF42AB #ABCF42 #42ABCF
tetradic
#CF42AB #CFAC42 #42CF66 #4264CF
square
#CF42AB #CFAC42 #42CF66 #4264CF
split-complementary
#CF42AB #64CF42 #42CFAC
monochromatic
#781F61 #A92B89 #CF42AB #DB73C1 #E8A4D6

Accessibility & contrast

On white

4.18
#CF42AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#CF42AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42AB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42AB#FFFFFF#000000##000000
##CF42AB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6EAE
Deuteranopia (green-blind)
#7784A8
Tritanopia (blue-blind)
#DB4671
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf42ab;
/* rgb */ color: rgb(207, 66, 171);
/* oklch */ color: oklch(61.3% 0.208 339.7);
Tailwind
colors: {
  custom: {
    50: '#e181c4',
    500: '#cf42ab',
    950: '#000000',
  },
}
SCSS
$custom: #cf42ab;
$custom-light: #e181c4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42ab",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 315.319,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61321,
    "c": 0.20779,
    "h": 339.7
  },
  "luminance": 0.20102
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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