#8E31BF#8E31BF

#8E31BF is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.6% C 0.213 H 310.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8E31BF
RGBrgb(142, 49, 191)
HSLhsl(279, 59%, 47%)
HSVhsv(279, 74%, 75%)
CMYKcmyk(25.7%, 74.3%, 0%, 25.1%)
CIE-LABlab(40.75, 60.77, -56.86)
CIE-LCHlch(40.75, 83.23, 316.90°)
OKLaboklab(51.64% 0.1395 -0.161)
OKLCHoklch(51.64% 0.213 310.9)
XYZxyz(21.6558, 11.7095, 50.3995)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31BF #62BF31
analogous
#4731BF #8E31BF #BF31A9
triadic
#8E31BF #BF8E31 #31BF8E
tetradic
#8E31BF #BF4731 #62BF31 #31A9BF
square
#8E31BF #BF4731 #62BF31 #31A9BF
split-complementary
#8E31BF #A9BF31 #31BF47
monochromatic
#46185E #6A258E #8E31BF #AA59D4 #C38AE1

Accessibility & contrast

On white

6.28
#8E31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8E31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31BF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31BF#FFFFFF#000000##FFFFFF
##8E31BF1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#1462BC
Tritanopia (blue-blind)
#875276
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8e31bf;
/* rgb */ color: rgb(142, 49, 191);
/* oklch */ color: oklch(51.6% 0.213 310.9);
Tailwind
colors: {
  custom: {
    50: '#b472d3',
    500: '#8e31bf',
    950: '#000000',
  },
}
SCSS
$custom: #8e31bf;
$custom-light: #b472d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31bf",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 279.296,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51639,
    "c": 0.21303,
    "h": 310.9
  },
  "luminance": 0.11709
}

Semantic roles & 50–950 ramp

primary
#8E31BF
secondary
#9ACB81
accent
#E2457C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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