#8E309D#8E309D

#8E309D is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.2% C 0.183 H 321.9°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8E309D
RGBrgb(142, 48, 157)
HSLhsl(292, 53%, 40%)
HSVhsv(292, 69%, 62%)
CMYKcmyk(9.6%, 69.4%, 0%, 38.4%)
CIE-LABlab(38.38, 54.33, -40.48)
CIE-LCHlch(38.38, 67.75, 323.31°)
OKLaboklab(49.24% 0.1439 -0.113)
OKLCHoklch(49.24% 0.183 321.9)
XYZxyz(18.2974, 10.3000, 32.9161)
Luminance0.1030 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E309D #3F9D30
analogous
#57309D #8E309D #9D3076
triadic
#8E309D #9D8E30 #309D8E
tetradic
#8E309D #9D5730 #3F9D30 #30769D
square
#8E309D #9D5730 #3F9D30 #30769D
split-complementary
#8E309D #769D30 #309D57
monochromatic
#39133F #64226E #8E309D #B444C6 #C773D4

Accessibility & contrast

On white

6.86
#8E309D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8E309D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E309D
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E309D#FFFFFF#000000##FFFFFF
##8E309D1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B54A0
Deuteranopia (green-blind)
#3E5E9A
Tritanopia (blue-blind)
#904363
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e309d;
/* rgb */ color: rgb(142, 48, 157);
/* oklch */ color: oklch(49.2% 0.183 321.9);
Tailwind
colors: {
  custom: {
    50: '#b271ba',
    500: '#8e309d',
    950: '#000000',
  },
}
SCSS
$custom: #8e309d;
$custom-light: #b271ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8e309d",
  "rgb": {
    "r": 142,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 291.743,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49236,
    "c": 0.18295,
    "h": 321.9
  },
  "luminance": 0.10299
}

Semantic roles & 50–950 ramp

primary
#8E309D
secondary
#78BC6D
accent
#DD4B5F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E309D

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

Preview Lab → · Contrast checker → · Palette generator →

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