#8E2BA5#8E2BA5

#8E2BA5 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.196 H 319.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8E2BA5
RGBrgb(142, 43, 165)
HSLhsl(289, 59%, 41%)
HSVhsv(289, 74%, 65%)
CMYKcmyk(13.9%, 73.9%, 0%, 35.3%)
CIE-LABlab(38.19, 57.79, -45.58)
CIE-LCHlch(38.19, 73.60, 321.73°)
OKLaboklab(49.26% 0.1486 -0.1279)
OKLCHoklch(49.26% 0.196 319.3)
XYZxyz(18.8099, 10.1961, 36.5673)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2BA5 #42A52B
analogous
#512BA5 #8E2BA5 #A52B7F
triadic
#8E2BA5 #A58E2B #2BA58E
tetradic
#8E2BA5 #A5512B #42A52B #2B7FA5
square
#8E2BA5 #A5512B #42A52B #2B7FA5
split-complementary
#8E2BA5 #7FA52B #2BA551
monochromatic
#3A1244 #641E74 #8E2BA5 #B340CD #C671DA

Accessibility & contrast

On white

6.91
#8E2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8E2BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2BA5
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2BA5#FFFFFF#000000##FFFFFF
##8E2BA51.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#345DA2
Tritanopia (blue-blind)
#8E4366
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2ba5;
/* rgb */ color: rgb(142, 43, 165);
/* oklch */ color: oklch(49.3% 0.196 319.3);
Tailwind
colors: {
  custom: {
    50: '#b36fc0',
    500: '#8e2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ba5;
$custom-light: #b36fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ba5",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 288.689,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49264,
    "c": 0.19603,
    "h": 319.3
  },
  "luminance": 0.10195
}

Semantic roles & 50–950 ramp

primary
#8E2BA5
secondary
#7BC16B
accent
#E24663
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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