#8E2BA4#8E2BA4

#8E2BA4 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.195 H 319.6°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8E2BA4
RGBrgb(142, 43, 164)
HSLhsl(289, 58%, 41%)
HSVhsv(289, 74%, 64%)
CMYKcmyk(13.4%, 73.8%, 0%, 35.7%)
CIE-LABlab(38.13, 57.60, -45.09)
CIE-LCHlch(38.13, 73.15, 321.95°)
OKLaboklab(49.2% 0.1487 -0.1264)
OKLCHoklch(49.2% 0.195 319.6)
XYZxyz(18.7192, 10.1598, 36.0898)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2BA4 #41A42B
analogous
#512BA4 #8E2BA4 #A42B7D
triadic
#8E2BA4 #A48E2B #2BA48E
tetradic
#8E2BA4 #A4512B #41A42B #2B7DA4
square
#8E2BA4 #A4512B #41A42B #2B7DA4
split-complementary
#8E2BA4 #7DA42B #2BA451
monochromatic
#3A1243 #641E74 #8E2BA4 #B33FCD #C670D9

Accessibility & contrast

On white

6.93
#8E2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8E2BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2BA4
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2BA4#FFFFFF#000000##FFFFFF
##8E2BA41.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#355DA1
Tritanopia (blue-blind)
#8E4365
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2ba4;
/* rgb */ color: rgb(142, 43, 164);
/* oklch */ color: oklch(49.2% 0.195 319.6);
Tailwind
colors: {
  custom: {
    50: '#b36fc0',
    500: '#8e2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ba4;
$custom-light: #b36fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ba4",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 289.091,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49198,
    "c": 0.19515,
    "h": 319.6
  },
  "luminance": 0.10159
}

Semantic roles & 50–950 ramp

primary
#8E2BA4
secondary
#7AC16A
accent
#E24662
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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