#CF31B4#CF31B4

#CF31B4 is a mid, highly saturated pink. Relative luminance 0.188; OKLCH L 60.3% C 0.232 H 336.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#CF31B4
RGBrgb(207, 49, 180)
HSLhsl(310, 62%, 50%)
HSVhsv(310, 76%, 81%)
CMYKcmyk(0%, 76.3%, 13%, 18.8%)
CIE-LABlab(50.41, 72.39, -34.42)
CIE-LCHlch(50.41, 80.15, 334.57°)
OKLaboklab(60.33% 0.2126 -0.0939)
OKLCHoklch(60.33% 0.232 336.2)
XYZxyz(35.0693, 18.7606, 44.9454)
Luminance0.1876 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31B4 #31CF4C
analogous
#9B31CF #CF31B4 #CF3165
triadic
#CF31B4 #B4CF31 #31B4CF
tetradic
#CF31B4 #CF9B31 #31CF4C #3165CF
square
#CF31B4 #CF9B31 #31CF4C #3165CF
split-complementary
#CF31B4 #65CF31 #31CF9B
monochromatic
#6C195E #9E2589 #CF31B4 #DB63C6 #E694D8

Accessibility & contrast

On white

4.42
#CF31B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#CF31B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31B4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31B4#FFFFFF#000000##000000
##CF31B41.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3469B7
Deuteranopia (green-blind)
#6D80B0
Tritanopia (blue-blind)
#DA3D70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cf31b4;
/* rgb */ color: rgb(207, 49, 180);
/* oklch */ color: oklch(60.3% 0.232 336.2);
Tailwind
colors: {
  custom: {
    50: '#e27acb',
    500: '#cf31b4',
    950: '#000000',
  },
}
SCSS
$custom: #cf31b4;
$custom-light: #e27acb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31b4",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 310.253,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60333,
    "c": 0.2324,
    "h": 336.2
  },
  "luminance": 0.18757
}

Semantic roles & 50–950 ramp

primary
#CF31B4
secondary
#8BD197
accent
#E55E43
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CF31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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