#8E308D#8E308D

#8E308D is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.3% C 0.169 H 328.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8E308D
RGBrgb(142, 48, 141)
HSLhsl(301, 49%, 37%)
HSVhsv(301, 66%, 56%)
CMYKcmyk(0%, 66.2%, 0.7%, 44.3%)
CIE-LABlab(37.46, 51.39, -32.20)
CIE-LCHlch(37.46, 60.64, 327.93°)
OKLaboklab(48.28% 0.1437 -0.0889)
OKLCHoklch(48.28% 0.169 328.2)
XYZxyz(17.0198, 9.7889, 26.1872)
Luminance0.0979 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E308D #308E31
analogous
#60308E #8E308D #8E305E
triadic
#8E308D #8D8E30 #308D8E
tetradic
#8E308D #8E6030 #308E31 #305E8E
square
#8E308D #8E6030 #308E31 #305E8E
split-complementary
#8E308D #5E8E30 #308E60
monochromatic
#331132 #602160 #8E308D #BC3FBA #CD6BCC

Accessibility & contrast

On white

7.10
#8E308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8E308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E308D
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E308D#FFFFFF#000000##FFFFFF
##8E308D1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245090
Deuteranopia (green-blind)
#485D8A
Tritanopia (blue-blind)
#933C5A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e308d;
/* rgb */ color: rgb(142, 48, 141);
/* oklch */ color: oklch(48.3% 0.169 328.2);
Tailwind
colors: {
  custom: {
    50: '#b270af',
    500: '#8e308d',
    950: '#000000',
  },
}
SCSS
$custom: #8e308d;
$custom-light: #b270af;
$custom-dark: #000000;
JSON
{
  "hex": "#8e308d",
  "rgb": {
    "r": 142,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 300.638,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48281,
    "c": 0.16895,
    "h": 328.2
  },
  "luminance": 0.09788
}

Semantic roles & 50–950 ramp

primary
#8E308D
secondary
#65B466
accent
#D9504F
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E308D

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

Preview Lab → · Contrast checker → · Palette generator →

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