#8E2B8D#8E2B8D

#8E2B8D is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.175 H 328.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8E2B8D
RGBrgb(142, 43, 141)
HSLhsl(301, 54%, 36%)
HSVhsv(301, 70%, 56%)
CMYKcmyk(0%, 69.7%, 0.7%, 44.3%)
CIE-LABlab(36.75, 53.39, -33.33)
CIE-LCHlch(36.75, 62.94, 328.02°)
OKLaboklab(47.77% 0.1493 -0.0921)
OKLCHoklch(47.77% 0.175 328.3)
XYZxyz(16.8267, 9.4028, 26.1228)
Luminance0.0940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2B8D #2B8E2C
analogous
#5E2B8E #8E2B8D #8E2B5C
triadic
#8E2B8D #8D8E2B #2B8D8E
tetradic
#8E2B8D #8E5E2B #2B8E2C #2B5C8E
square
#8E2B8D #8E5E2B #2B8E2C #2B5C8E
split-complementary
#8E2B8D #5C8E2B #2B8E5E
monochromatic
#300F30 #5F1D5E #8E2B8D #BD39BC #D063CF

Accessibility & contrast

On white

7.29
#8E2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8E2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2B8D
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2B8D#FFFFFF#000000##FFFFFF
##8E2B8D1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E90
Deuteranopia (green-blind)
#455B8A
Tritanopia (blue-blind)
#933959
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e2b8d;
/* rgb */ color: rgb(142, 43, 141);
/* oklch */ color: oklch(47.8% 0.175 328.3);
Tailwind
colors: {
  custom: {
    50: '#b26eaf',
    500: '#8e2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #8e2b8d;
$custom-light: #b26eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2b8d",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 300.606,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47767,
    "c": 0.17547,
    "h": 328.3
  },
  "luminance": 0.09402
}

Semantic roles & 50–950 ramp

primary
#8E2B8D
secondary
#5FB660
accent
#DD4C4B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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