#8B31DA#8B31DA

#8B31DA is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.3% C 0.238 H 303.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8B31DA
RGBrgb(139, 49, 218)
HSLhsl(272, 70%, 52%)
HSVhsv(272, 78%, 85%)
CMYKcmyk(36.2%, 77.5%, 0%, 14.5%)
CIE-LABlab(42.38, 66.13, -69.87)
CIE-LCHlch(42.38, 96.20, 313.42°)
OKLaboklab(53.34% 0.1296 -0.1993)
OKLCHoklch(53.34% 0.238 303)
XYZxyz(24.3977, 12.7475, 67.4912)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31DA #80DA31
analogous
#3731DA #8B31DA #DA31D4
triadic
#8B31DA #DA8B31 #31DA8B
tetradic
#8B31DA #DA3731 #80DA31 #31D4DA
square
#8B31DA #DA3731 #80DA31 #31D4DA
split-complementary
#8B31DA #D4DA31 #31DA37
monochromatic
#4C167B #6C1FAE #8B31DA #A865E3 #C599ED

Accessibility & contrast

On white

5.92
#8B31DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8B31DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31DA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31DA#FFFFFF#000000##FFFFFF
##8B31DA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DF
Deuteranopia (green-blind)
#0064D7
Tritanopia (blue-blind)
#7B5E85
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8b31da;
/* rgb */ color: rgb(139, 49, 218);
/* oklch */ color: oklch(53.3% 0.238 303.0);
Tailwind
colors: {
  custom: {
    50: '#b473e7',
    500: '#8b31da',
    950: '#000000',
  },
}
SCSS
$custom: #8b31da;
$custom-light: #b473e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31da",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 218
  },
  "hsl": {
    "h": 271.953,
    "s": 69.547,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53336,
    "c": 0.23779,
    "h": 303
  },
  "luminance": 0.12748
}

Semantic roles & 50–950 ramp

primary
#8B31DA
secondary
#B1D88F
accent
#EC3B8E
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8B31DA

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

Preview Lab → · Contrast checker → · Palette generator →

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