#8E2D8B#8E2D8B

#8E2D8B is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.9% C 0.171 H 329.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#8E2D8B
RGBrgb(142, 45, 139)
HSLhsl(302, 52%, 37%)
HSVhsv(302, 68%, 56%)
CMYKcmyk(0%, 68.3%, 2.1%, 44.3%)
CIE-LABlab(36.92, 52.26, -31.84)
CIE-LCHlch(36.92, 61.19, 328.65°)
OKLaboklab(47.85% 0.147 -0.0878)
OKLCHoklch(47.85% 0.171 329.1)
XYZxyz(16.7538, 9.4928, 25.3710)
Luminance0.0949 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2D8B #2D8E30
analogous
#612D8E #8E2D8B #8E2D5B
triadic
#8E2D8B #8B8E2D #2D8B8E
tetradic
#8E2D8B #8E612D #2D8E30 #2D5B8E
square
#8E2D8B #8E612D #2D8E30 #2D5B8E
split-complementary
#8E2D8B #5B8E2D #2D8E61
monochromatic
#311030 #601E5E #8E2D8B #BC3CB8 #CF67CC

Accessibility & contrast

On white

7.25
#8E2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8E2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2D8B
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2D8B#FFFFFF#000000##FFFFFF
##8E2D8B1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8E
Deuteranopia (green-blind)
#475B88
Tritanopia (blue-blind)
#933958
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2d8b;
/* rgb */ color: rgb(142, 45, 139);
/* oklch */ color: oklch(47.9% 0.171 329.1);
Tailwind
colors: {
  custom: {
    50: '#b26ead',
    500: '#8e2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #8e2d8b;
$custom-light: #b26ead;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2d8b",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 301.856,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47853,
    "c": 0.17127,
    "h": 329.1
  },
  "luminance": 0.09492
}

Semantic roles & 50–950 ramp

primary
#8E2D8B
secondary
#61B564
accent
#DB514C
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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