#CF31A7#CF31A7

#CF31A7 is a mid, highly saturated pink. Relative luminance 0.183; OKLCH L 59.7% C 0.224 H 340.5°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#CF31A7
RGBrgb(207, 49, 167)
HSLhsl(315, 62%, 50%)
HSVhsv(315, 76%, 81%)
CMYKcmyk(0%, 76.3%, 19.3%, 18.8%)
CIE-LABlab(49.80, 70.62, -27.72)
CIE-LCHlch(49.80, 75.87, 338.57°)
OKLaboklab(59.7% 0.2112 -0.0748)
OKLCHoklch(59.7% 0.224 340.5)
XYZxyz(33.8065, 18.2555, 38.2950)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31A7 #31CF59
analogous
#A831CF #CF31A7 #CF3158
triadic
#CF31A7 #A7CF31 #31A7CF
tetradic
#CF31A7 #CFA831 #31CF59 #3158CF
square
#CF31A7 #CFA831 #31CF59 #3158CF
split-complementary
#CF31A7 #58CF31 #31CFA8
monochromatic
#6C1957 #9E257F #CF31A7 #DB63BC #E694D1

Accessibility & contrast

On white

4.52
#CF31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#CF31A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31A7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31A7#FFFFFF#000000##000000
##CF31A71.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E66AA
Deuteranopia (green-blind)
#727FA3
Tritanopia (blue-blind)
#DB3669
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cf31a7;
/* rgb */ color: rgb(207, 49, 167);
/* oklch */ color: oklch(59.7% 0.224 340.5);
Tailwind
colors: {
  custom: {
    50: '#e27ac1',
    500: '#cf31a7',
    950: '#000000',
  },
}
SCSS
$custom: #cf31a7;
$custom-light: #e27ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31a7",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 315.19,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59704,
    "c": 0.22407,
    "h": 340.5
  },
  "luminance": 0.18252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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