#8E2E8B#8E2E8B

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

Color values

HEX#8E2E8B
RGBrgb(142, 46, 139)
HSLhsl(302, 51%, 37%)
HSVhsv(302, 68%, 56%)
CMYKcmyk(0%, 67.6%, 2.1%, 44.3%)
CIE-LABlab(37.06, 51.86, -31.61)
CIE-LCHlch(37.06, 60.73, 328.64°)
OKLaboklab(47.96% 0.1459 -0.0872)
OKLCHoklch(47.96% 0.17 329.1)
XYZxyz(16.7924, 9.5700, 25.3838)
Luminance0.0957 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2E8B #2E8E31
analogous
#612E8E #8E2E8B #8E2E5B
triadic
#8E2E8B #8B8E2E #2E8B8E
tetradic
#8E2E8B #8E612E #2E8E31 #2E5B8E
square
#8E2E8B #8E612E #2E8E31 #2E5B8E
split-complementary
#8E2E8B #5B8E2E #2E8E61
monochromatic
#321031 #601F5E #8E2E8B #BC3DB8 #CE68CB

Accessibility & contrast

On white

7.21
#8E2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E2E8B
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2E8B#FFFFFF#000000##FFFFFF
##8E2E8B1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8E
Deuteranopia (green-blind)
#485C88
Tritanopia (blue-blind)
#933A58
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2e8b;
/* rgb */ color: rgb(142, 46, 139);
/* oklch */ color: oklch(48.0% 0.170 329.1);
Tailwind
colors: {
  custom: {
    50: '#b26fad',
    500: '#8e2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #8e2e8b;
$custom-light: #b26fad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2e8b",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 301.875,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47956,
    "c": 0.16995,
    "h": 329.1
  },
  "luminance": 0.09569
}

Semantic roles & 50–950 ramp

primary
#8E2E8B
secondary
#63B565
accent
#DB524D
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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