#8A2486#8A2486

#8A2486 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.176 H 329.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8A2486
RGBrgb(138, 36, 134)
HSLhsl(302, 59%, 34%)
HSVhsv(302, 74%, 54%)
CMYKcmyk(0%, 73.9%, 2.9%, 45.9%)
CIE-LABlab(34.78, 53.80, -32.18)
CIE-LCHlch(34.78, 62.69, 329.12°)
OKLaboklab(46.09% 0.152 -0.0889)
OKLCHoklch(46.09% 0.176 329.7)
XYZxyz(15.4151, 8.3874, 23.3567)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2486 #248A28
analogous
#5B248A #8A2486 #8A2453
triadic
#8A2486 #868A24 #24868A
tetradic
#8A2486 #8A5B24 #248A28 #24538A
square
#8A2486 #8A5B24 #248A28 #24538A
split-complementary
#8A2486 #538A24 #248A5B
monochromatic
#290B28 #591757 #8A2486 #BB31B5 #D356CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2486#FFFFFF#000000##FFFFFF
##8A24861.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)
#174989
Deuteranopia (green-blind)
#425783
Tritanopia (blue-blind)
#8F3253
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2486;
/* rgb */ color: rgb(138, 36, 134);
/* oklch */ color: oklch(46.1% 0.176 329.7);
Tailwind
colors: {
  custom: {
    50: '#af6aa9',
    500: '#8a2486',
    950: '#000000',
  },
}
SCSS
$custom: #8a2486;
$custom-light: #af6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2486",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 302.353,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46093,
    "c": 0.17604,
    "h": 329.7
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#8A2486
secondary
#53B757
accent
#E24C46
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2486

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

Preview Lab → · Contrast checker → · Palette generator →

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