#CF31B3#CF31B3

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

Color values

HEX#CF31B3
RGBrgb(207, 49, 179)
HSLhsl(311, 62%, 50%)
HSVhsv(311, 76%, 81%)
CMYKcmyk(0%, 76.3%, 13.5%, 18.8%)
CIE-LABlab(50.36, 72.25, -33.91)
CIE-LCHlch(50.36, 79.81, 334.86°)
OKLaboklab(60.28% 0.2125 -0.0924)
OKLCHoklch(60.28% 0.232 336.5)
XYZxyz(34.9678, 18.7200, 44.4108)
Luminance0.1872 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31B3 #31CF4D
analogous
#9C31CF #CF31B3 #CF3164
triadic
#CF31B3 #B3CF31 #31B3CF
tetradic
#CF31B3 #CF9C31 #31CF4D #3164CF
square
#CF31B3 #CF9C31 #31CF4D #3164CF
split-complementary
#CF31B3 #64CF31 #31CF9C
monochromatic
#6C195E #9E2589 #CF31B3 #DB63C5 #E694D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CF31B3#FFFFFF#000000##000000
##CF31B31.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)
#3569B6
Deuteranopia (green-blind)
#6D80AF
Tritanopia (blue-blind)
#DA3D70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cf31b3;
/* rgb */ color: rgb(207, 49, 179);
/* oklch */ color: oklch(60.3% 0.232 336.5);
Tailwind
colors: {
  custom: {
    50: '#e27aca',
    500: '#cf31b3',
    950: '#000000',
  },
}
SCSS
$custom: #cf31b3;
$custom-light: #e27aca;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31b3",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 310.633,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60283,
    "c": 0.23174,
    "h": 336.5
  },
  "luminance": 0.18717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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