#CF31B6#CF31B6

#CF31B6 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.4% C 0.234 H 335.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#CF31B6
RGBrgb(207, 49, 182)
HSLhsl(309, 62%, 50%)
HSVhsv(309, 76%, 81%)
CMYKcmyk(0%, 76.3%, 12.1%, 18.8%)
CIE-LABlab(50.50, 72.67, -35.44)
CIE-LCHlch(50.50, 80.85, 334.00°)
OKLaboklab(60.43% 0.2127 -0.0968)
OKLCHoklch(60.43% 0.234 335.5)
XYZxyz(35.2745, 18.8427, 46.0261)
Luminance0.1884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31B6 #31CF4A
analogous
#9931CF #CF31B6 #CF3167
triadic
#CF31B6 #B6CF31 #31B6CF
tetradic
#CF31B6 #CF9931 #31CF4A #3167CF
square
#CF31B6 #CF9931 #31CF4A #3167CF
split-complementary
#CF31B6 #67CF31 #31CF99
monochromatic
#6C195F #9E258B #CF31B6 #DB63C8 #E694D9

Accessibility & contrast

On white

4.40
#CF31B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#CF31B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31B6
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31B6#FFFFFF#000000##000000
##CF31B61.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3269BA
Deuteranopia (green-blind)
#6C80B2
Tritanopia (blue-blind)
#D93E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cf31b6;
/* rgb */ color: rgb(207, 49, 182);
/* oklch */ color: oklch(60.4% 0.234 335.5);
Tailwind
colors: {
  custom: {
    50: '#e27acc',
    500: '#cf31b6',
    950: '#000000',
  },
}
SCSS
$custom: #cf31b6;
$custom-light: #e27acc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31b6",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 309.494,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60434,
    "c": 0.23373,
    "h": 335.5
  },
  "luminance": 0.18839
}

Semantic roles & 50–950 ramp

primary
#CF31B6
secondary
#8BD196
accent
#E55C43
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160A13
muted
#847C82

Preview Lab

Preview with #CF31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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