#CF42AA#CF42AA

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

Color values

HEX#CF42AA
RGBrgb(207, 66, 170)
HSLhsl(316, 59%, 54%)
HSVhsv(316, 68%, 81%)
CMYKcmyk(0%, 68.1%, 17.9%, 18.8%)
CIE-LABlab(51.91, 65.44, -26.21)
CIE-LCHlch(51.91, 70.49, 338.17°)
OKLaboklab(61.28% 0.1947 -0.0707)
OKLCHoklch(61.28% 0.207 340.1)
XYZxyz(34.9369, 20.0674, 40.0558)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42AA #42CF67
analogous
#AE42CF #CF42AA #CF4263
triadic
#CF42AA #AACF42 #42AACF
tetradic
#CF42AA #CFAE42 #42CF67 #4263CF
square
#CF42AA #CFAE42 #42CF67 #4263CF
split-complementary
#CF42AA #63CF42 #42CFAE
monochromatic
#781F61 #A92B88 #CF42AA #DB73C0 #E8A4D6

Accessibility & contrast

On white

4.19
#CF42AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CF42AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42AA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42AA#FFFFFF#000000##000000
##CF42AA1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6DAD
Deuteranopia (green-blind)
#7784A7
Tritanopia (blue-blind)
#DB4670
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf42aa;
/* rgb */ color: rgb(207, 66, 170);
/* oklch */ color: oklch(61.3% 0.207 340.1);
Tailwind
colors: {
  custom: {
    50: '#e181c3',
    500: '#cf42aa',
    950: '#000000',
  },
}
SCSS
$custom: #cf42aa;
$custom-light: #e181c3;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42aa",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 315.745,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61276,
    "c": 0.20714,
    "h": 340.1
  },
  "luminance": 0.20064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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