#8E2BAB#8E2BAB

#8E2BAB is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.7% C 0.201 H 317.3°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8E2BAB
RGBrgb(142, 43, 171)
HSLhsl(286, 60%, 42%)
HSVhsv(286, 75%, 67%)
CMYKcmyk(17%, 74.9%, 0%, 32.9%)
CIE-LABlab(38.59, 58.95, -48.54)
CIE-LCHlch(38.59, 76.36, 320.53°)
OKLaboklab(49.67% 0.1479 -0.1365)
OKLCHoklch(49.67% 0.201 317.3)
XYZxyz(19.3688, 10.4196, 39.5111)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2BAB #48AB2B
analogous
#4E2BAB #8E2BAB #AB2B88
triadic
#8E2BAB #AB8E2B #2BAB8E
tetradic
#8E2BAB #AB4E2B #48AB2B #2B88AB
square
#8E2BAB #AB4E2B #48AB2B #2B88AB
split-complementary
#8E2BAB #88AB2B #2BAB4E
monochromatic
#3D1249 #651F7A #8E2BAB #B043D0 #C574DC

Accessibility & contrast

On white

6.81
#8E2BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8E2BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2BAB
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2BAB#FFFFFF#000000##FFFFFF
##8E2BAB1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#2E5EA8
Tritanopia (blue-blind)
#8D4669
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2bab;
/* rgb */ color: rgb(142, 43, 171);
/* oklch */ color: oklch(49.7% 0.201 317.3);
Tailwind
colors: {
  custom: {
    50: '#b36fc5',
    500: '#8e2bab',
    950: '#000000',
  },
}
SCSS
$custom: #8e2bab;
$custom-light: #b36fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2bab",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 286.406,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49669,
    "c": 0.20133,
    "h": 317.3
  },
  "luminance": 0.10419
}

Semantic roles & 50–950 ramp

primary
#8E2BAB
secondary
#82C46E
accent
#E34569
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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