#8A2587#8A2587

#8A2587 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.176 H 329.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8A2587
RGBrgb(138, 37, 135)
HSLhsl(302, 58%, 34%)
HSVhsv(302, 73%, 54%)
CMYKcmyk(0%, 73.2%, 2.2%, 45.9%)
CIE-LABlab(34.96, 53.62, -32.51)
CIE-LCHlch(34.96, 62.71, 328.77°)
OKLaboklab(46.24% 0.151 -0.0898)
OKLCHoklch(46.24% 0.176 329.2)
XYZxyz(15.5158, 8.4768, 23.7360)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2587 #258A28
analogous
#5B258A #8A2587 #8A2555
triadic
#8A2587 #878A25 #25878A
tetradic
#8A2587 #8A5B25 #258A28 #25558A
square
#8A2587 #8A5B25 #258A28 #25558A
split-complementary
#8A2587 #558A25 #258A5B
monochromatic
#290B29 #5A1858 #8A2587 #BA32B6 #D257CE

Accessibility & contrast

On white

7.79
#8A2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2587
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2587#FFFFFF#000000##FFFFFF
##8A25871.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174A8A
Deuteranopia (green-blind)
#425784
Tritanopia (blue-blind)
#8F3354
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2587;
/* rgb */ color: rgb(138, 37, 135);
/* oklch */ color: oklch(46.2% 0.176 329.2);
Tailwind
colors: {
  custom: {
    50: '#af6aaa',
    500: '#8a2587',
    950: '#000000',
  },
}
SCSS
$custom: #8a2587;
$custom-light: #af6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2587",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 301.782,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4624,
    "c": 0.17569,
    "h": 329.2
  },
  "luminance": 0.08476
}

Semantic roles & 50–950 ramp

primary
#8A2587
secondary
#54B757
accent
#E14B47
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2587

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

Preview Lab → · Contrast checker → · Palette generator →

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