#8A2487#8A2487

#8A2487 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.177 H 329.3°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8A2487
RGBrgb(138, 36, 135)
HSLhsl(302, 59%, 34%)
HSVhsv(302, 74%, 54%)
CMYKcmyk(0%, 73.9%, 2.2%, 45.9%)
CIE-LABlab(34.83, 53.97, -32.71)
CIE-LCHlch(34.83, 63.11, 328.79°)
OKLaboklab(46.15% 0.152 -0.0904)
OKLCHoklch(46.15% 0.177 329.3)
XYZxyz(15.4852, 8.4155, 23.7257)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2487 #248A27
analogous
#5A248A #8A2487 #8A2454
triadic
#8A2487 #878A24 #24878A
tetradic
#8A2487 #8A5A24 #248A27 #24548A
square
#8A2487 #8A5A24 #248A27 #24548A
split-complementary
#8A2487 #548A24 #248A5A
monochromatic
#290B28 #591758 #8A2487 #BB31B6 #D356CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2487#FFFFFF#000000##FFFFFF
##8A24871.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)
#15498A
Deuteranopia (green-blind)
#415784
Tritanopia (blue-blind)
#8F3253
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2487;
/* rgb */ color: rgb(138, 36, 135);
/* oklch */ color: oklch(46.2% 0.177 329.3);
Tailwind
colors: {
  custom: {
    50: '#af6aaa',
    500: '#8a2487',
    950: '#000000',
  },
}
SCSS
$custom: #8a2487;
$custom-light: #af6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2487",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 301.765,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46152,
    "c": 0.17684,
    "h": 329.3
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#8A2487
secondary
#53B756
accent
#E24B46
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2487

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

Preview Lab → · Contrast checker → · Palette generator →

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