#CF317D#CF317D

#CF317D is a mid, highly saturated pink. Relative luminance 0.169; OKLCH L 58.0% C 0.202 H 356.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#CF317D
RGBrgb(207, 49, 125)
HSLhsl(331, 62%, 50%)
HSVhsv(331, 76%, 81%)
CMYKcmyk(0%, 76.3%, 39.6%, 18.8%)
CIE-LABlab(48.19, 65.75, -4.99)
CIE-LCHlch(48.19, 65.94, 355.66°)
OKLaboklab(58.01% 0.2021 -0.0123)
OKLCHoklch(58.01% 0.202 356.5)
XYZxyz(30.5343, 16.9466, 21.0612)
Luminance0.1694 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF317D #31CF83
analogous
#CF31CC #CF317D #CF3431
triadic
#CF317D #7DCF31 #317DCF
tetradic
#CF317D #CCCF31 #31CF83 #3431CF
square
#CF317D #CCCF31 #31CF83 #3431CF
split-complementary
#CF317D #31CF34 #31CCCF
monochromatic
#6C1941 #9E255F #CF317D #DB639C #E694BC

Accessibility & contrast

On white

4.79
#CF317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#CF317D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CF317D
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF317D#FFFFFF#000000##FFFFFF
##CF317D1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52607F
Deuteranopia (green-blind)
#7E7D79
Tritanopia (blue-blind)
#E01953
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #cf317d;
/* rgb */ color: rgb(207, 49, 125);
/* oklch */ color: oklch(58.0% 0.202 356.5);
Tailwind
colors: {
  custom: {
    50: '#e378a2',
    500: '#cf317d',
    950: '#000000',
  },
}
SCSS
$custom: #cf317d;
$custom-light: #e378a2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf317d",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 331.139,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58005,
    "c": 0.20245,
    "h": 356.5
  },
  "luminance": 0.16943
}

Semantic roles & 50–950 ramp

primary
#CF317D
secondary
#8BD1AF
accent
#E59743
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0F
muted
#847C7E

Preview Lab

Preview with #CF317D

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

Preview Lab → · Contrast checker → · Palette generator →

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