#CF317C#CF317C

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

Color values

HEX#CF317C
RGBrgb(207, 49, 124)
HSLhsl(332, 62%, 50%)
HSVhsv(332, 76%, 81%)
CMYKcmyk(0%, 76.3%, 40.1%, 18.8%)
CIE-LABlab(48.16, 65.65, -4.43)
CIE-LCHlch(48.16, 65.80, 356.14°)
OKLaboklab(57.97% 0.2018 -0.0108)
OKLCHoklch(57.97% 0.202 356.9)
XYZxyz(30.4707, 16.9212, 20.7264)
Luminance0.1692 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF317C #31CF84
analogous
#CF31CB #CF317C #CF3531
triadic
#CF317C #7CCF31 #317CCF
tetradic
#CF317C #CBCF31 #31CF84 #3531CF
square
#CF317C #CBCF31 #31CF84 #3531CF
split-complementary
#CF317C #31CF35 #31CBCF
monochromatic
#6C1941 #9E255E #CF317C #DB639C #E694BB

Accessibility & contrast

On white

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

On black

4.38
#CF317C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##CF317C#FFFFFF#000000##FFFFFF
##CF317C1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535F7E
Deuteranopia (green-blind)
#7E7D78
Tritanopia (blue-blind)
#E01853
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #cf317c;
/* rgb */ color: rgb(207, 49, 124);
/* oklch */ color: oklch(58.0% 0.202 356.9);
Tailwind
colors: {
  custom: {
    50: '#e378a1',
    500: '#cf317c',
    950: '#000000',
  },
}
SCSS
$custom: #cf317c;
$custom-light: #e378a1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf317c",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 331.519,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57971,
    "c": 0.20208,
    "h": 356.9
  },
  "luminance": 0.16917
}

Semantic roles & 50–950 ramp

primary
#CF317C
secondary
#8BD1B0
accent
#E59843
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#170A0F
muted
#857C7E

Preview Lab

Preview with #CF317C

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

Preview Lab → · Contrast checker → · Palette generator →

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