#CF31A8#CF31A8

#CF31A8 is a mid, highly saturated pink. Relative luminance 0.183; OKLCH L 59.8% C 0.225 H 340.2°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#CF31A8
RGBrgb(207, 49, 168)
HSLhsl(315, 62%, 50%)
HSVhsv(315, 76%, 81%)
CMYKcmyk(0%, 76.3%, 18.8%, 18.8%)
CIE-LABlab(49.85, 70.75, -28.24)
CIE-LCHlch(49.85, 76.18, 338.24°)
OKLaboklab(59.75% 0.2114 -0.0763)
OKLCHoklch(59.75% 0.225 340.2)
XYZxyz(33.8993, 18.2926, 38.7837)
Luminance0.1829 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31A8 #31CF58
analogous
#A731CF #CF31A8 #CF3159
triadic
#CF31A8 #A8CF31 #31A8CF
tetradic
#CF31A8 #CFA731 #31CF58 #3159CF
square
#CF31A8 #CFA731 #31CF58 #3159CF
split-complementary
#CF31A8 #59CF31 #31CFA7
monochromatic
#6C1958 #9E2580 #CF31A8 #DB63BD #E694D2

Accessibility & contrast

On white

4.51
#CF31A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#CF31A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31A8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31A8#FFFFFF#000000##000000
##CF31A81.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D67AB
Deuteranopia (green-blind)
#717FA4
Tritanopia (blue-blind)
#DB366A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cf31a8;
/* rgb */ color: rgb(207, 49, 168);
/* oklch */ color: oklch(59.8% 0.225 340.2);
Tailwind
colors: {
  custom: {
    50: '#e27ac2',
    500: '#cf31a8',
    950: '#000000',
  },
}
SCSS
$custom: #cf31a8;
$custom-light: #e27ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31a8",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 314.81,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59751,
    "c": 0.22469,
    "h": 340.2
  },
  "luminance": 0.18289
}

Semantic roles & 50–950 ramp

primary
#CF31A8
secondary
#8BD19C
accent
#E56B43
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CF31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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