#8E2A8A#8E2A8A

#8E2A8A is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.174 H 329.6°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8E2A8A
RGBrgb(142, 42, 138)
HSLhsl(302, 54%, 36%)
HSVhsv(302, 70%, 56%)
CMYKcmyk(0%, 70.4%, 2.8%, 44.3%)
CIE-LABlab(36.45, 53.25, -31.96)
CIE-LCHlch(36.45, 62.11, 329.03°)
OKLaboklab(47.5% 0.1503 -0.0882)
OKLCHoklch(47.5% 0.174 329.6)
XYZxyz(16.5706, 9.2429, 24.9511)
Luminance0.0924 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2A8A #2A8E2E
analogous
#602A8E #8E2A8A #8E2A58
triadic
#8E2A8A #8A8E2A #2A8A8E
tetradic
#8E2A8A #8E602A #2A8E2E #2A588E
square
#8E2A8A #8E602A #2A8E2E #2A588E
split-complementary
#8E2A8A #588E2A #2A8E60
monochromatic
#300E2E #5F1C5C #8E2A8A #BD38B8 #D162CC

Accessibility & contrast

On white

7.37
#8E2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8E2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2A8A
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2A8A#FFFFFF#000000##FFFFFF
##8E2A8A1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4D8D
Deuteranopia (green-blind)
#465A87
Tritanopia (blue-blind)
#933757
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e2a8a;
/* rgb */ color: rgb(142, 42, 138);
/* oklch */ color: oklch(47.5% 0.174 329.6);
Tailwind
colors: {
  custom: {
    50: '#b26dac',
    500: '#8e2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #8e2a8a;
$custom-light: #b26dac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2a8a",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 302.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47497,
    "c": 0.17426,
    "h": 329.6
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#8E2A8A
secondary
#5DB661
accent
#DE504A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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