#8A2387#8A2387

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

Color values

HEX#8A2387
RGBrgb(138, 35, 135)
HSLhsl(302, 60%, 34%)
HSVhsv(302, 75%, 54%)
CMYKcmyk(0%, 74.6%, 2.2%, 45.9%)
CIE-LABlab(34.71, 54.32, -32.90)
CIE-LCHlch(34.71, 63.50, 328.80°)
OKLaboklab(46.07% 0.153 -0.0909)
OKLCHoklch(46.07% 0.178 329.3)
XYZxyz(15.4553, 8.3558, 23.7158)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2387 #238A26
analogous
#5A238A #8A2387 #8A2354
triadic
#8A2387 #878A23 #23878A
tetradic
#8A2387 #8A5A23 #238A26 #23548A
square
#8A2387 #8A5A23 #238A26 #23548A
split-complementary
#8A2387 #548A23 #238A5A
monochromatic
#280A27 #591757 #8A2387 #BB2FB7 #D454D0

Accessibility & contrast

On white

7.86
#8A2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2387
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2387#FFFFFF#000000##FFFFFF
##8A23871.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#415684
Tritanopia (blue-blind)
#8F3253
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2387;
/* rgb */ color: rgb(138, 35, 135);
/* oklch */ color: oklch(46.1% 0.178 329.3);
Tailwind
colors: {
  custom: {
    50: '#b069aa',
    500: '#8a2387',
    950: '#000000',
  },
}
SCSS
$custom: #8a2387;
$custom-light: #b069aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2387",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 301.748,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46066,
    "c": 0.17797,
    "h": 329.3
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#8A2387
secondary
#51B754
accent
#E34A45
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2387

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

Preview Lab → · Contrast checker → · Palette generator →

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