#CF31A9#CF31A9

#CF31A9 is a mid, highly saturated pink. Relative luminance 0.183; OKLCH L 59.8% C 0.225 H 339.8°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#CF31A9
RGBrgb(207, 49, 169)
HSLhsl(314, 62%, 50%)
HSVhsv(314, 76%, 81%)
CMYKcmyk(0%, 76.3%, 18.4%, 18.8%)
CIE-LABlab(49.89, 70.89, -28.76)
CIE-LCHlch(49.89, 76.50, 337.92°)
OKLaboklab(59.8% 0.2115 -0.0777)
OKLCHoklch(59.8% 0.225 339.8)
XYZxyz(33.9928, 18.3300, 39.2763)
Luminance0.1833 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31A9 #31CF57
analogous
#A631CF #CF31A9 #CF315A
triadic
#CF31A9 #A9CF31 #31A9CF
tetradic
#CF31A9 #CFA631 #31CF57 #315ACF
square
#CF31A9 #CFA631 #31CF57 #315ACF
split-complementary
#CF31A9 #5ACF31 #31CFA6
monochromatic
#6C1958 #9E2581 #CF31A9 #DB63BE #E694D2

Accessibility & contrast

On white

4.50
#CF31A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#CF31A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31A9
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31A9#FFFFFF#000000##000000
##CF31A91.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D67AC
Deuteranopia (green-blind)
#7180A5
Tritanopia (blue-blind)
#DB376A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cf31a9;
/* rgb */ color: rgb(207, 49, 169);
/* oklch */ color: oklch(59.8% 0.225 339.8);
Tailwind
colors: {
  custom: {
    50: '#e27ac3',
    500: '#cf31a9',
    950: '#000000',
  },
}
SCSS
$custom: #cf31a9;
$custom-light: #e27ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31a9",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 314.43,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59798,
    "c": 0.22531,
    "h": 339.8
  },
  "luminance": 0.18327
}

Semantic roles & 50–950 ramp

primary
#CF31A9
secondary
#8BD19C
accent
#E56A43
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A12
muted
#847C81

Preview Lab

Preview with #CF31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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