#8E30B8#8E30B8

#8E30B8 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.0% C 0.208 H 313.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8E30B8
RGBrgb(142, 48, 184)
HSLhsl(281, 59%, 45%)
HSVhsv(281, 74%, 72%)
CMYKcmyk(22.8%, 73.9%, 0%, 27.8%)
CIE-LABlab(40.12, 59.70, -53.77)
CIE-LCHlch(40.12, 80.34, 317.99°)
OKLaboklab(51.04% 0.1415 -0.1519)
OKLCHoklch(51.04% 0.208 313)
XYZxyz(20.8625, 11.3260, 46.4253)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E30B8 #5AB830
analogous
#4A30B8 #8E30B8 #B8309E
triadic
#8E30B8 #B88E30 #30B88E
tetradic
#8E30B8 #B84A30 #5AB830 #309EB8
square
#8E30B8 #B84A30 #5AB830 #309EB8
split-complementary
#8E30B8 #9EB830 #30B84A
monochromatic
#431757 #692387 #8E30B8 #AB53D2 #C384DF

Accessibility & contrast

On white

6.43
#8E30B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8E30B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E30B8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E30B8#FFFFFF#000000##FFFFFF
##8E30B81.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#2161B5
Tritanopia (blue-blind)
#894E72
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8e30b8;
/* rgb */ color: rgb(142, 48, 184);
/* oklch */ color: oklch(51.0% 0.208 313.0);
Tailwind
colors: {
  custom: {
    50: '#b372ce',
    500: '#8e30b8',
    950: '#000000',
  },
}
SCSS
$custom: #8e30b8;
$custom-light: #b372ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8e30b8",
  "rgb": {
    "r": 142,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 281.471,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.5104,
    "c": 0.20761,
    "h": 313
  },
  "luminance": 0.11325
}

Semantic roles & 50–950 ramp

primary
#8E30B8
secondary
#93C87C
accent
#E24676
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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