#CF42AF#CF42AF

#CF42AF is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.5% C 0.210 H 338.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CF42AF
RGBrgb(207, 66, 175)
HSLhsl(314, 59%, 54%)
HSVhsv(314, 68%, 81%)
CMYKcmyk(0%, 68.1%, 15.5%, 18.8%)
CIE-LABlab(52.13, 66.14, -28.81)
CIE-LCHlch(52.13, 72.14, 336.47°)
OKLaboklab(61.51% 0.1955 -0.078)
OKLCHoklch(61.51% 0.21 338.2)
XYZxyz(35.4189, 20.2602, 42.5944)
Luminance0.2026 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42AF #42CF62
analogous
#A842CF #CF42AF #CF4268
triadic
#CF42AF #AFCF42 #42AFCF
tetradic
#CF42AF #CFA842 #42CF62 #4268CF
square
#CF42AF #CFA842 #42CF62 #4268CF
split-complementary
#CF42AF #68CF42 #42CFA8
monochromatic
#781F64 #A92B8C #CF42AF #DB73C4 #E8A4D8

Accessibility & contrast

On white

4.16
#CF42AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CF42AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42AF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42AF#FFFFFF#000000##000000
##CF42AF1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#486EB2
Deuteranopia (green-blind)
#7584AC
Tritanopia (blue-blind)
#DA4873
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf42af;
/* rgb */ color: rgb(207, 66, 175);
/* oklch */ color: oklch(61.5% 0.210 338.2);
Tailwind
colors: {
  custom: {
    50: '#e181c7',
    500: '#cf42af',
    950: '#000000',
  },
}
SCSS
$custom: #cf42af;
$custom-light: #e181c7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42af",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 313.617,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61505,
    "c": 0.21047,
    "h": 338.2
  },
  "luminance": 0.20257
}

Semantic roles & 50–950 ramp

primary
#CF42AF
secondary
#98D5A6
accent
#E36945
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF42AF

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

Preview Lab → · Contrast checker → · Palette generator →

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