#CF31BD#CF31BD

#CF31BD is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.8% C 0.238 H 333.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#CF31BD
RGBrgb(207, 49, 189)
HSLhsl(307, 62%, 50%)
HSVhsv(307, 76%, 81%)
CMYKcmyk(0%, 76.3%, 8.7%, 18.8%)
CIE-LABlab(50.85, 73.67, -38.97)
CIE-LCHlch(50.85, 83.34, 332.12°)
OKLaboklab(60.8% 0.2131 -0.107)
OKLCHoklch(60.8% 0.238 333.3)
XYZxyz(36.0160, 19.1393, 49.9316)
Luminance0.1914 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31BD #31CF43
analogous
#9231CF #CF31BD #CF316E
triadic
#CF31BD #BDCF31 #31BDCF
tetradic
#CF31BD #CF9231 #31CF43 #316ECF
square
#CF31BD #CF9231 #31CF43 #316ECF
split-complementary
#CF31BD #6ECF31 #31CF92
monochromatic
#6C1963 #9E2590 #CF31BD #DB63CD #E694DD

Accessibility & contrast

On white

4.35
#CF31BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#CF31BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31BD
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31BD#FFFFFF#000000##000000
##CF31BD1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A6BC1
Deuteranopia (green-blind)
#6881B9
Tritanopia (blue-blind)
#D84275
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cf31bd;
/* rgb */ color: rgb(207, 49, 189);
/* oklch */ color: oklch(60.8% 0.238 333.3);
Tailwind
colors: {
  custom: {
    50: '#e27bd1',
    500: '#cf31bd',
    950: '#000000',
  },
}
SCSS
$custom: #cf31bd;
$custom-light: #e27bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31bd",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 306.835,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60795,
    "c": 0.23847,
    "h": 333.3
  },
  "luminance": 0.19136
}

Semantic roles & 50–950 ramp

primary
#CF31BD
secondary
#8BD193
accent
#E55543
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CF31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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