#8E31DA#8E31DA

#8E31DA is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.7% C 0.238 H 304.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8E31DA
RGBrgb(142, 49, 218)
HSLhsl(273, 70%, 52%)
HSVhsv(273, 78%, 85%)
CMYKcmyk(34.9%, 77.5%, 0%, 14.5%)
CIE-LABlab(42.78, 66.60, -69.21)
CIE-LCHlch(42.78, 96.05, 313.90°)
OKLaboklab(53.7% 0.1338 -0.1973)
OKLCHoklch(53.7% 0.238 304.1)
XYZxyz(24.9056, 13.0094, 67.5151)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31DA #7DDA31
analogous
#3A31DA #8E31DA #DA31D1
triadic
#8E31DA #DA8E31 #31DA8E
tetradic
#8E31DA #DA3A31 #7DDA31 #31D1DA
square
#8E31DA #DA3A31 #7DDA31 #31D1DA
split-complementary
#8E31DA #D1DA31 #31DA3A
monochromatic
#4D167B #6E1FAE #8E31DA #AA65E3 #C799ED

Accessibility & contrast

On white

5.83
#8E31DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8E31DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31DA
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31DA#FFFFFF#000000##FFFFFF
##8E31DA1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DF
Deuteranopia (green-blind)
#0065D7
Tritanopia (blue-blind)
#7F5E85
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e31da;
/* rgb */ color: rgb(142, 49, 218);
/* oklch */ color: oklch(53.7% 0.238 304.1);
Tailwind
colors: {
  custom: {
    50: '#b674e7',
    500: '#8e31da',
    950: '#000000',
  },
}
SCSS
$custom: #8e31da;
$custom-light: #b674e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31da",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 218
  },
  "hsl": {
    "h": 273.018,
    "s": 69.547,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53698,
    "c": 0.23838,
    "h": 304.1
  },
  "luminance": 0.13009
}

Semantic roles & 50–950 ramp

primary
#8E31DA
secondary
#B0D88F
accent
#EC3B8B
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8E31DA

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

Preview Lab → · Contrast checker → · Palette generator →

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