#CF31AE#CF31AE

#CF31AE is a mid, highly saturated pink. Relative luminance 0.185; OKLCH L 60.0% C 0.228 H 338.1°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#CF31AE
RGBrgb(207, 49, 174)
HSLhsl(313, 62%, 50%)
HSVhsv(313, 76%, 81%)
CMYKcmyk(0%, 76.3%, 15.9%, 18.8%)
CIE-LABlab(50.12, 71.56, -31.35)
CIE-LCHlch(50.12, 78.12, 336.34°)
OKLaboklab(60.04% 0.212 -0.0851)
OKLCHoklch(60.04% 0.228 338.1)
XYZxyz(34.4712, 18.5214, 41.7957)
Luminance0.1852 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31AE #31CF52
analogous
#A131CF #CF31AE #CF315F
triadic
#CF31AE #AECF31 #31AECF
tetradic
#CF31AE #CFA131 #31CF52 #315FCF
square
#CF31AE #CFA131 #31CF52 #315FCF
split-complementary
#CF31AE #5FCF31 #31CFA1
monochromatic
#6C195B #9E2585 #CF31AE #DB63C2 #E694D5

Accessibility & contrast

On white

4.46
#CF31AE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#CF31AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31AE
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31AE#FFFFFF#000000##000000
##CF31AE1.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3968B1
Deuteranopia (green-blind)
#6F80AA
Tritanopia (blue-blind)
#DB3A6D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cf31ae;
/* rgb */ color: rgb(207, 49, 174);
/* oklch */ color: oklch(60.0% 0.228 338.1);
Tailwind
colors: {
  custom: {
    50: '#e27ac6',
    500: '#cf31ae',
    950: '#000000',
  },
}
SCSS
$custom: #cf31ae;
$custom-light: #e27ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31ae",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 312.532,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60037,
    "c": 0.22849,
    "h": 338.1
  },
  "luminance": 0.18518
}

Semantic roles & 50–950 ramp

primary
#CF31AE
secondary
#8BD199
accent
#E56543
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CF31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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