#CF31A6#CF31A6

#CF31A6 is a mid, highly saturated pink. Relative luminance 0.182; OKLCH L 59.7% C 0.223 H 340.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#CF31A6
RGBrgb(207, 49, 166)
HSLhsl(316, 62%, 50%)
HSVhsv(316, 76%, 81%)
CMYKcmyk(0%, 76.3%, 19.8%, 18.8%)
CIE-LABlab(49.76, 70.49, -27.20)
CIE-LCHlch(49.76, 75.56, 338.90°)
OKLaboklab(59.66% 0.2111 -0.0733)
OKLCHoklch(59.66% 0.223 340.8)
XYZxyz(33.7144, 18.2186, 37.8100)
Luminance0.1822 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31A6 #31CF5A
analogous
#A931CF #CF31A6 #CF3157
triadic
#CF31A6 #A6CF31 #31A6CF
tetradic
#CF31A6 #CFA931 #31CF5A #3157CF
square
#CF31A6 #CFA931 #31CF5A #3157CF
split-complementary
#CF31A6 #57CF31 #31CFA9
monochromatic
#6C1957 #9E257F #CF31A6 #DB63BB #E694D1

Accessibility & contrast

On white

4.52
#CF31A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#CF31A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31A6
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31A6#FFFFFF#000000##000000
##CF31A61.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F66A9
Deuteranopia (green-blind)
#727FA2
Tritanopia (blue-blind)
#DC3569
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cf31a6;
/* rgb */ color: rgb(207, 49, 166);
/* oklch */ color: oklch(59.7% 0.223 340.8);
Tailwind
colors: {
  custom: {
    50: '#e27ac0',
    500: '#cf31a6',
    950: '#000000',
  },
}
SCSS
$custom: #cf31a6;
$custom-light: #e27ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31a6",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 315.57,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59658,
    "c": 0.22345,
    "h": 340.8
  },
  "luminance": 0.18215
}

Semantic roles & 50–950 ramp

primary
#CF31A6
secondary
#8BD19D
accent
#E56D43
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CF31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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