#8E2D8A#8E2D8A

#8E2D8A is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.8% C 0.170 H 329.6°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#8E2D8A
RGBrgb(142, 45, 138)
HSLhsl(302, 52%, 37%)
HSVhsv(302, 68%, 56%)
CMYKcmyk(0%, 68.3%, 2.8%, 44.3%)
CIE-LABlab(36.86, 52.09, -31.31)
CIE-LCHlch(36.86, 60.77, 328.99°)
OKLaboklab(47.8% 0.147 -0.0863)
OKLCHoklch(47.8% 0.17 329.6)
XYZxyz(16.6810, 9.4637, 24.9879)
Luminance0.0946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2D8A #2D8E31
analogous
#622D8E #8E2D8A #8E2D5A
triadic
#8E2D8A #8A8E2D #2D8A8E
tetradic
#8E2D8A #8E622D #2D8E31 #2D5A8E
square
#8E2D8A #8E622D #2D8E31 #2D5A8E
split-complementary
#8E2D8A #5A8E2D #2D8E62
monochromatic
#311030 #601E5D #8E2D8A #BC3CB7 #CF67CA

Accessibility & contrast

On white

7.26
#8E2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8E2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2D8A
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2D8A#FFFFFF#000000##FFFFFF
##8E2D8A1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8D
Deuteranopia (green-blind)
#485B87
Tritanopia (blue-blind)
#933958
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2d8a;
/* rgb */ color: rgb(142, 45, 138);
/* oklch */ color: oklch(47.8% 0.170 329.6);
Tailwind
colors: {
  custom: {
    50: '#b26eac',
    500: '#8e2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #8e2d8a;
$custom-light: #b26eac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2d8a",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 302.474,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47796,
    "c": 0.17044,
    "h": 329.6
  },
  "luminance": 0.09463
}

Semantic roles & 50–950 ramp

primary
#8E2D8A
secondary
#61B565
accent
#DB524C
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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