#CF317E#CF317E

#CF317E is a mid, highly saturated pink. Relative luminance 0.170; OKLCH L 58.0% C 0.203 H 356.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#CF317E
RGBrgb(207, 49, 126)
HSLhsl(331, 62%, 50%)
HSVhsv(331, 76%, 81%)
CMYKcmyk(0%, 76.3%, 39.1%, 18.8%)
CIE-LABlab(48.23, 65.85, -5.55)
CIE-LCHlch(48.23, 66.08, 355.18°)
OKLaboklab(58.04% 0.2024 -0.0138)
OKLCHoklch(58.04% 0.203 356.1)
XYZxyz(30.5985, 16.9723, 21.3993)
Luminance0.1697 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF317E #31CF82
analogous
#CF31CD #CF317E #CF3331
triadic
#CF317E #7ECF31 #317ECF
tetradic
#CF317E #CDCF31 #31CF82 #3331CF
square
#CF317E #CDCF31 #31CF82 #3331CF
split-complementary
#CF317E #31CF33 #31CDCF
monochromatic
#6C1942 #9E2560 #CF317E #DB639D #E694BC

Accessibility & contrast

On white

4.78
#CF317E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #CF317E
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF317E#FFFFFF#000000##FFFFFF
##CF317E1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526080
Deuteranopia (green-blind)
#7E7D7A
Tritanopia (blue-blind)
#E01A54
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #cf317e;
/* rgb */ color: rgb(207, 49, 126);
/* oklch */ color: oklch(58.0% 0.203 356.1);
Tailwind
colors: {
  custom: {
    50: '#e378a3',
    500: '#cf317e',
    950: '#000000',
  },
}
SCSS
$custom: #cf317e;
$custom-light: #e378a3;
$custom-dark: #000000;
JSON
{
  "hex": "#cf317e",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 330.759,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5804,
    "c": 0.20285,
    "h": 356.1
  },
  "luminance": 0.16968
}

Semantic roles & 50–950 ramp

primary
#CF317E
secondary
#8BD1AF
accent
#E59643
background
#FEF7FA
surface
#FDEEF3
border
#D5C9CD
text
#160A0F
muted
#847C7F

Preview Lab

Preview with #CF317E

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

Preview Lab → · Contrast checker → · Palette generator →

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