#8E2B8E#8E2B8E

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

Color values

HEX#8E2B8E
RGBrgb(142, 43, 142)
HSLhsl(300, 54%, 36%)
HSVhsv(300, 70%, 56%)
CMYKcmyk(0%, 69.7%, 0%, 44.3%)
CIE-LABlab(36.80, 53.56, -33.85)
CIE-LCHlch(36.80, 63.36, 327.71°)
OKLaboklab(47.83% 0.1494 -0.0937)
OKLCHoklch(47.83% 0.176 327.9)
XYZxyz(16.9015, 9.4327, 26.5164)
Luminance0.0943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2B8E #2B8E2B
analogous
#5D2B8E #8E2B8E #8E2B5D
triadic
#8E2B8E #8E8E2B #2B8E8E
tetradic
#8E2B8E #8E5D2B #2B8E2B #2B5D8E
square
#8E2B8E #8E5D2B #2B8E2B #2B5D8E
split-complementary
#8E2B8E #5D8E2B #2B8E5D
monochromatic
#300F30 #5F1D5F #8E2B8E #BD39BD #D063D0

Accessibility & contrast

On white

7.28
#8E2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8E2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2B8E
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2B8E#FFFFFF#000000##FFFFFF
##8E2B8E1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E91
Deuteranopia (green-blind)
#445B8B
Tritanopia (blue-blind)
#923959
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2b8e;
/* rgb */ color: rgb(142, 43, 142);
/* oklch */ color: oklch(47.8% 0.176 327.9);
Tailwind
colors: {
  custom: {
    50: '#b26eaf',
    500: '#8e2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #8e2b8e;
$custom-light: #b26eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2b8e",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 300,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47826,
    "c": 0.1763,
    "h": 327.9
  },
  "luminance": 0.09432
}

Semantic roles & 50–950 ramp

primary
#8E2B8E
secondary
#5FB65F
accent
#DD4B4B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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