#8E2B8A#8E2B8A

#8E2B8A is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.173 H 329.6°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8E2B8A
RGBrgb(142, 43, 138)
HSLhsl(302, 54%, 36%)
HSVhsv(302, 70%, 56%)
CMYKcmyk(0%, 69.7%, 2.8%, 44.3%)
CIE-LABlab(36.58, 52.87, -31.75)
CIE-LCHlch(36.58, 61.67, 329.02°)
OKLaboklab(47.6% 0.1492 -0.0876)
OKLCHoklch(47.6% 0.173 329.6)
XYZxyz(16.6065, 9.3147, 24.9631)
Luminance0.0931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2B8A #2B8E2F
analogous
#612B8E #8E2B8A #8E2B59
triadic
#8E2B8A #8A8E2B #2B8A8E
tetradic
#8E2B8A #8E612B #2B8E2F #2B598E
square
#8E2B8A #8E612B #2B8E2F #2B598E
split-complementary
#8E2B8A #598E2B #2B8E61
monochromatic
#300F2F #5F1D5C #8E2B8A #BD39B8 #D063CC

Accessibility & contrast

On white

7.34
#8E2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8E2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2B8A
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2B8A#FFFFFF#000000##FFFFFF
##8E2B8A1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204D8D
Deuteranopia (green-blind)
#475B87
Tritanopia (blue-blind)
#933757
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e2b8a;
/* rgb */ color: rgb(142, 43, 138);
/* oklch */ color: oklch(47.6% 0.173 329.6);
Tailwind
colors: {
  custom: {
    50: '#b26dac',
    500: '#8e2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #8e2b8a;
$custom-light: #b26dac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2b8a",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 302.424,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47595,
    "c": 0.173,
    "h": 329.6
  },
  "luminance": 0.09314
}

Semantic roles & 50–950 ramp

primary
#8E2B8A
secondary
#5FB662
accent
#DD514B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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