#CF31B2#CF31B2

#CF31B2 is a mid, highly saturated pink. Relative luminance 0.187; OKLCH L 60.2% C 0.231 H 336.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#CF31B2
RGBrgb(207, 49, 178)
HSLhsl(311, 62%, 50%)
HSVhsv(311, 76%, 81%)
CMYKcmyk(0%, 76.3%, 14%, 18.8%)
CIE-LABlab(50.31, 72.11, -33.40)
CIE-LCHlch(50.31, 79.47, 335.15°)
OKLaboklab(60.23% 0.2124 -0.091)
OKLCHoklch(60.23% 0.231 336.8)
XYZxyz(34.8670, 18.6797, 43.8801)
Luminance0.1868 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31B2 #31CF4E
analogous
#9D31CF #CF31B2 #CF3163
triadic
#CF31B2 #B2CF31 #31B2CF
tetradic
#CF31B2 #CF9D31 #31CF4E #3163CF
square
#CF31B2 #CF9D31 #31CF4E #3163CF
split-complementary
#CF31B2 #63CF31 #31CF9D
monochromatic
#6C195D #9E2588 #CF31B2 #DB63C5 #E694D7

Accessibility & contrast

On white

4.43
#CF31B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#CF31B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31B2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31B2#FFFFFF#000000##000000
##CF31B21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#6D80AE
Tritanopia (blue-blind)
#DA3C6F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cf31b2;
/* rgb */ color: rgb(207, 49, 178);
/* oklch */ color: oklch(60.2% 0.231 336.8);
Tailwind
colors: {
  custom: {
    50: '#e27ac9',
    500: '#cf31b2',
    950: '#000000',
  },
}
SCSS
$custom: #cf31b2;
$custom-light: #e27ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31b2",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 311.013,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60233,
    "c": 0.23107,
    "h": 336.8
  },
  "luminance": 0.18676
}

Semantic roles & 50–950 ramp

primary
#CF31B2
secondary
#8BD198
accent
#E56043
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CF31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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