#CF317B#CF317B

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

Color values

HEX#CF317B
RGBrgb(207, 49, 123)
HSLhsl(332, 62%, 50%)
HSVhsv(332, 76%, 81%)
CMYKcmyk(0%, 76.3%, 40.6%, 18.8%)
CIE-LABlab(48.13, 65.55, -3.87)
CIE-LCHlch(48.13, 65.67, 356.62°)
OKLaboklab(57.94% 0.2015 -0.0093)
OKLCHoklch(57.94% 0.202 357.3)
XYZxyz(30.4078, 16.8960, 20.3950)
Luminance0.1689 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF317B #31CF85
analogous
#CF31CA #CF317B #CF3631
triadic
#CF317B #7BCF31 #317BCF
tetradic
#CF317B #CACF31 #31CF85 #3631CF
square
#CF317B #CACF31 #31CF85 #3631CF
split-complementary
#CF317B #31CF36 #31CACF
monochromatic
#6C1940 #9E255E #CF317B #DB639B #E694BB

Accessibility & contrast

On white

4.80
#CF317B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #CF317B
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF317B#FFFFFF#000000##FFFFFF
##CF317B1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535F7D
Deuteranopia (green-blind)
#7F7D77
Tritanopia (blue-blind)
#E01852
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #cf317b;
/* rgb */ color: rgb(207, 49, 123);
/* oklch */ color: oklch(57.9% 0.202 357.3);
Tailwind
colors: {
  custom: {
    50: '#e378a1',
    500: '#cf317b',
    950: '#000000',
  },
}
SCSS
$custom: #cf317b;
$custom-light: #e378a1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf317b",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 331.899,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57938,
    "c": 0.2017,
    "h": 357.3
  },
  "luminance": 0.16892
}

Semantic roles & 50–950 ramp

primary
#CF317B
secondary
#8BD1B0
accent
#E59943
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#170A0E
muted
#857C7E

Preview Lab

Preview with #CF317B

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

Preview Lab → · Contrast checker → · Palette generator →

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