#8E2B7E#8E2B7E

#8E2B7E is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.9% C 0.164 H 335.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#8E2B7E
RGBrgb(142, 43, 126)
HSLhsl(310, 54%, 36%)
HSVhsv(310, 70%, 56%)
CMYKcmyk(0%, 69.7%, 11.3%, 44.3%)
CIE-LABlab(35.96, 50.88, -25.30)
CIE-LCHlch(35.96, 56.83, 333.56°)
OKLaboklab(46.94% 0.1482 -0.069)
OKLCHoklch(46.94% 0.164 335)
XYZxyz(15.7853, 8.9862, 20.6378)
Luminance0.0898 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2B7E #2B8E3B
analogous
#6D2B8E #8E2B7E #8E2B4D
triadic
#8E2B7E #7E8E2B #2B7E8E
tetradic
#8E2B7E #8E6D2B #2B8E3B #2B4D8E
square
#8E2B7E #8E6D2B #2B8E3B #2B4D8E
split-complementary
#8E2B7E #4D8E2B #2B8E6D
monochromatic
#300F2B #5F1D54 #8E2B7E #BD39A8 #D063BE

Accessibility & contrast

On white

7.51
#8E2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8E2B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2B7E
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2B7E#FFFFFF#000000##FFFFFF
##8E2B7E1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#4C5A7C
Tritanopia (blue-blind)
#953251
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2b7e;
/* rgb */ color: rgb(142, 43, 126);
/* oklch */ color: oklch(46.9% 0.164 335.0);
Tailwind
colors: {
  custom: {
    50: '#b26da3',
    500: '#8e2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #8e2b7e;
$custom-light: #b26da3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2b7e",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 309.697,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46939,
    "c": 0.1635,
    "h": 335
  },
  "luminance": 0.08985
}

Semantic roles & 50–950 ramp

primary
#8E2B7E
secondary
#5FB66D
accent
#DD624B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8E2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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