#8F317E#8F317E

#8F317E is a mid, vivid pink. Relative luminance 0.095; OKLCH L 47.7% C 0.156 H 335.6°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8F317E
RGBrgb(143, 49, 126)
HSLhsl(311, 49%, 38%)
HSVhsv(311, 66%, 56%)
CMYKcmyk(0%, 65.7%, 11.9%, 43.9%)
CIE-LABlab(37.01, 48.68, -23.65)
CIE-LCHlch(37.01, 54.12, 334.09°)
OKLaboklab(47.74% 0.142 -0.0643)
OKLCHoklch(47.74% 0.156 335.6)
XYZxyz(16.1921, 9.5440, 20.7240)
Luminance0.0954 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F317E #318F42
analogous
#71318F #8F317E #8F314F
triadic
#8F317E #7E8F31 #317E8F
tetradic
#8F317E #8F7131 #318F42 #314F8F
square
#8F317E #8F7131 #318F42 #314F8F
split-complementary
#8F317E #4F8F31 #318F71
monochromatic
#34122E #612156 #8F317E #BD41A6 #CD6DBC

Accessibility & contrast

On white

7.22
#8F317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8F317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F317E
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F317E#FFFFFF#000000##FFFFFF
##8F317E1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#505C7C
Tritanopia (blue-blind)
#963753
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8f317e;
/* rgb */ color: rgb(143, 49, 126);
/* oklch */ color: oklch(47.7% 0.156 335.6);
Tailwind
colors: {
  custom: {
    50: '#b370a3',
    500: '#8f317e',
    950: '#000000',
  },
}
SCSS
$custom: #8f317e;
$custom-light: #b370a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f317e",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 310.851,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47738,
    "c": 0.15591,
    "h": 335.6
  },
  "luminance": 0.09543
}

Semantic roles & 50–950 ramp

primary
#8F317E
secondary
#67B575
accent
#D9684F
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8F317E

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

Preview Lab → · Contrast checker → · Palette generator →

#8F317E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva