#8A317B#8A317B

#8A317B is a mid, vivid pink. Relative luminance 0.090; OKLCH L 46.8% C 0.150 H 334.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#8A317B
RGBrgb(138, 49, 123)
HSLhsl(310, 48%, 37%)
HSVhsv(310, 64%, 54%)
CMYKcmyk(0%, 64.5%, 10.9%, 45.9%)
CIE-LABlab(36.04, 46.80, -23.35)
CIE-LCHlch(36.04, 52.30, 333.49°)
OKLaboklab(46.82% 0.136 -0.0636)
OKLCHoklch(46.82% 0.15 334.9)
XYZxyz(15.1548, 9.0312, 19.6801)
Luminance0.0903 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A317B #318A40
analogous
#6D318A #8A317B #8A314F
triadic
#8A317B #7B8A31 #317B8A
tetradic
#8A317B #8A6D31 #318A40 #314F8A
square
#8A317B #8A6D31 #318A40 #314F8A
split-complementary
#8A317B #4F8A31 #318A6D
monochromatic
#30112A #5D2153 #8A317B #B741A3 #CA6BBA

Accessibility & contrast

On white

7.48
#8A317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A317B
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A317B#FFFFFF#000000##FFFFFF
##8A317B1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314C7D
Deuteranopia (green-blind)
#4D5A79
Tritanopia (blue-blind)
#913751
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a317b;
/* rgb */ color: rgb(138, 49, 123);
/* oklch */ color: oklch(46.8% 0.150 334.9);
Tailwind
colors: {
  custom: {
    50: '#af6fa1',
    500: '#8a317b',
    950: '#000000',
  },
}
SCSS
$custom: #8a317b;
$custom-light: #af6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a317b",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 310.112,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46824,
    "c": 0.15015,
    "h": 334.9
  },
  "luminance": 0.0903
}

Semantic roles & 50–950 ramp

primary
#8A317B
secondary
#65B272
accent
#D76751
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8A317B

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

Preview Lab → · Contrast checker → · Palette generator →

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