#8E2D9D#8E2D9D

#8E2D9D is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.9% C 0.187 H 322.0°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8E2D9D
RGBrgb(142, 45, 157)
HSLhsl(292, 55%, 40%)
HSVhsv(292, 71%, 62%)
CMYKcmyk(9.6%, 71.3%, 0%, 38.4%)
CIE-LABlab(37.96, 55.52, -41.15)
CIE-LCHlch(37.96, 69.10, 323.45°)
OKLaboklab(48.93% 0.1471 -0.1149)
OKLCHoklch(48.93% 0.187 322)
XYZxyz(18.1789, 10.0629, 32.8765)
Luminance0.1006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2D9D #3C9D2D
analogous
#562D9D #8E2D9D #9D2D74
triadic
#8E2D9D #9D8E2D #2D9D8E
tetradic
#8E2D9D #9D562D #3C9D2D #2D749D
square
#8E2D9D #9D562D #3C9D2D #2D749D
split-complementary
#8E2D9D #749D2D #2D9D56
monochromatic
#38123E #631F6D #8E2D9D #B63FC8 #C86FD6

Accessibility & contrast

On white

6.97
#8E2D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8E2D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2D9D
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2D9D#FFFFFF#000000##FFFFFF
##8E2D9D1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#3C5D9A
Tritanopia (blue-blind)
#904162
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e2d9d;
/* rgb */ color: rgb(142, 45, 157);
/* oklch */ color: oklch(48.9% 0.187 322.0);
Tailwind
colors: {
  custom: {
    50: '#b26fba',
    500: '#8e2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #8e2d9d;
$custom-light: #b26fba;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2d9d",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 291.964,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48934,
    "c": 0.18667,
    "h": 322
  },
  "luminance": 0.10062
}

Semantic roles & 50–950 ramp

primary
#8E2D9D
secondary
#74BD69
accent
#DF495D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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