#CF31B9#CF31B9

#CF31B9 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.6% C 0.236 H 334.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#CF31B9
RGBrgb(207, 49, 185)
HSLhsl(308, 62%, 50%)
HSVhsv(308, 76%, 81%)
CMYKcmyk(0%, 76.3%, 10.6%, 18.8%)
CIE-LABlab(50.65, 73.09, -36.96)
CIE-LCHlch(50.65, 81.91, 333.18°)
OKLaboklab(60.59% 0.2129 -0.1012)
OKLCHoklch(60.59% 0.236 334.6)
XYZxyz(35.5878, 18.9680, 47.6764)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31B9 #31CF47
analogous
#9631CF #CF31B9 #CF316A
triadic
#CF31B9 #B9CF31 #31B9CF
tetradic
#CF31B9 #CF9631 #31CF47 #316ACF
square
#CF31B9 #CF9631 #31CF47 #316ACF
split-complementary
#CF31B9 #6ACF31 #31CF96
monochromatic
#6C1961 #9E258D #CF31B9 #DB63CA #E694DB

Accessibility & contrast

On white

4.38
#CF31B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#CF31B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31B9
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31B9#FFFFFF#000000##000000
##CF31B91.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F6ABD
Deuteranopia (green-blind)
#6A81B5
Tritanopia (blue-blind)
#D94073
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cf31b9;
/* rgb */ color: rgb(207, 49, 185);
/* oklch */ color: oklch(60.6% 0.236 334.6);
Tailwind
colors: {
  custom: {
    50: '#e27ace',
    500: '#cf31b9',
    950: '#000000',
  },
}
SCSS
$custom: #cf31b9;
$custom-light: #e27ace;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31b9",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 308.354,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60587,
    "c": 0.23574,
    "h": 334.6
  },
  "luminance": 0.18965
}

Semantic roles & 50–950 ramp

primary
#CF31B9
secondary
#8BD194
accent
#E55943
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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