#8E2D8D#8E2D8D

#8E2D8D is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.0% C 0.173 H 328.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8E2D8D
RGBrgb(142, 45, 141)
HSLhsl(301, 52%, 37%)
HSVhsv(301, 68%, 56%)
CMYKcmyk(0%, 68.3%, 0.7%, 44.3%)
CIE-LABlab(37.03, 52.61, -32.89)
CIE-LCHlch(37.03, 62.04, 327.99°)
OKLaboklab(47.97% 0.1471 -0.0909)
OKLCHoklch(47.97% 0.173 328.3)
XYZxyz(16.9012, 9.5518, 26.1476)
Luminance0.0955 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2D8D #2D8E2E
analogous
#5F2D8E #8E2D8D #8E2D5D
triadic
#8E2D8D #8D8E2D #2D8D8E
tetradic
#8E2D8D #8E5F2D #2D8E2E #2D5D8E
square
#8E2D8D #8E5F2D #2D8E2E #2D5D8E
split-complementary
#8E2D8D #5D8E2D #2D8E5F
monochromatic
#311031 #601E5F #8E2D8D #BC3CBB #CF67CE

Accessibility & contrast

On white

7.22
#8E2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8E2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2D8D
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2D8D#FFFFFF#000000##FFFFFF
##8E2D8D1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F90
Deuteranopia (green-blind)
#465C8A
Tritanopia (blue-blind)
#933A59
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2d8d;
/* rgb */ color: rgb(142, 45, 141);
/* oklch */ color: oklch(48.0% 0.173 328.3);
Tailwind
colors: {
  custom: {
    50: '#b26faf',
    500: '#8e2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #8e2d8d;
$custom-light: #b26faf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2d8d",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 300.619,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47967,
    "c": 0.17293,
    "h": 328.3
  },
  "luminance": 0.09551
}

Semantic roles & 50–950 ramp

primary
#8E2D8D
secondary
#61B562
accent
#DB4E4C
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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