#CF31B5#CF31B5

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

Color values

HEX#CF31B5
RGBrgb(207, 49, 181)
HSLhsl(310, 62%, 50%)
HSVhsv(310, 76%, 81%)
CMYKcmyk(0%, 76.3%, 12.6%, 18.8%)
CIE-LABlab(50.45, 72.53, -34.93)
CIE-LCHlch(50.45, 80.50, 334.28°)
OKLaboklab(60.38% 0.2127 -0.0954)
OKLCHoklch(60.38% 0.233 335.8)
XYZxyz(35.1715, 18.8015, 45.4838)
Luminance0.1880 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31B5 #31CF4B
analogous
#9A31CF #CF31B5 #CF3166
triadic
#CF31B5 #B5CF31 #31B5CF
tetradic
#CF31B5 #CF9A31 #31CF4B #3166CF
square
#CF31B5 #CF9A31 #31CF4B #3166CF
split-complementary
#CF31B5 #66CF31 #31CF9A
monochromatic
#6C195F #9E258A #CF31B5 #DB63C7 #E694D9

Accessibility & contrast

On white

4.41
#CF31B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#CF31B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31B5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31B5#FFFFFF#000000##000000
##CF31B51.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3369B8
Deuteranopia (green-blind)
#6C80B1
Tritanopia (blue-blind)
#DA3E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cf31b5;
/* rgb */ color: rgb(207, 49, 181);
/* oklch */ color: oklch(60.4% 0.233 335.8);
Tailwind
colors: {
  custom: {
    50: '#e27acb',
    500: '#cf31b5',
    950: '#000000',
  },
}
SCSS
$custom: #cf31b5;
$custom-light: #e27acb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31b5",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 309.873,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60383,
    "c": 0.23306,
    "h": 335.8
  },
  "luminance": 0.18798
}

Semantic roles & 50–950 ramp

primary
#CF31B5
secondary
#8BD196
accent
#E55D43
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CF31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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