#8A315D#8A315D

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

Color values

HEX#8A315D
RGBrgb(138, 49, 93)
HSLhsl(330, 48%, 37%)
HSVhsv(330, 64%, 54%)
CMYKcmyk(0%, 64.5%, 32.6%, 45.9%)
CIE-LABlab(34.79, 42.33, -6.31)
CIE-LCHlch(34.79, 42.80, 351.52°)
OKLaboklab(45.49% 0.129 -0.0162)
OKLCHoklch(45.49% 0.13 352.8)
XYZxyz(13.5560, 8.3916, 11.2596)
Luminance0.0839 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A315D #318A5E
analogous
#8A318A #8A315D #8A3131
triadic
#8A315D #5D8A31 #315D8A
tetradic
#8A315D #8A8A31 #318A5E #31318A
square
#8A315D #8A8A31 #318A5E #31318A
split-complementary
#8A315D #318A31 #318A8A
monochromatic
#301120 #5D213F #8A315D #B7417B #CA6B9A

Accessibility & contrast

On white

7.84
#8A315D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A315D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A315D#FFFFFF#000000##FFFFFF
##8A315D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a315d;
/* rgb */ color: rgb(138, 49, 93);
/* oklch */ color: oklch(45.5% 0.130 352.8);
Tailwind
colors: {
  custom: {
    50: '#af6f8a',
    500: '#8a315d',
    950: '#000000',
  },
}
SCSS
$custom: #8a315d;
$custom-light: #af6f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a315d",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 93
  },
  "hsl": {
    "h": 330.337,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45486,
    "c": 0.12997,
    "h": 352.8
  },
  "luminance": 0.0839
}

Semantic roles & 50–950 ramp

primary
#8A315D
secondary
#65B28C
accent
#D79551
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11080B
muted
#807B7C

Preview Lab

Preview with #8A315D

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

Preview Lab → · Contrast checker → · Palette generator →

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