#8A315E#8A315E

#8A315E is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.5% C 0.131 H 352.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8A315E
RGBrgb(138, 49, 94)
HSLhsl(330, 48%, 37%)
HSVhsv(330, 64%, 54%)
CMYKcmyk(0%, 64.5%, 31.9%, 45.9%)
CIE-LABlab(34.82, 42.46, -6.90)
CIE-LCHlch(34.82, 43.02, 350.77°)
OKLaboklab(45.53% 0.1293 -0.0178)
OKLCHoklch(45.53% 0.131 352.2)
XYZxyz(13.6006, 8.4095, 11.4944)
Luminance0.0841 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A315E #318A5D
analogous
#8A318A #8A315E #8A3131
triadic
#8A315E #5E8A31 #315E8A
tetradic
#8A315E #8A8A31 #318A5D #31318A
square
#8A315E #8A8A31 #318A5D #31318A
split-complementary
#8A315E #318A31 #318A8A
monochromatic
#301120 #5D213F #8A315E #B7417D #CA6B9B

Accessibility & contrast

On white

7.83
#8A315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A315E
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A315E#FFFFFF#000000##FFFFFF
##8A315E1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E485F
Deuteranopia (green-blind)
#57585C
Tritanopia (blue-blind)
#942C43
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a315e;
/* rgb */ color: rgb(138, 49, 94);
/* oklch */ color: oklch(45.5% 0.131 352.2);
Tailwind
colors: {
  custom: {
    50: '#af6f8b',
    500: '#8a315e',
    950: '#000000',
  },
}
SCSS
$custom: #8a315e;
$custom-light: #af6f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a315e",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 329.663,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45525,
    "c": 0.1305,
    "h": 352.2
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#8A315E
secondary
#65B28B
accent
#D79351
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11080C
muted
#807B7D

Preview Lab

Preview with #8A315E

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

Preview Lab → · Contrast checker → · Palette generator →

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