#8A31B9#8A31B9

#8A31B9 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.7% C 0.206 H 311.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8A31B9
RGBrgb(138, 49, 185)
HSLhsl(279, 58%, 46%)
HSVhsv(279, 74%, 73%)
CMYKcmyk(25.4%, 73.5%, 0%, 27.5%)
CIE-LABlab(39.75, 58.73, -54.98)
CIE-LCHlch(39.75, 80.45, 316.89°)
OKLaboklab(50.68% 0.1352 -0.1556)
OKLCHoklch(50.68% 0.206 311)
XYZxyz(20.3348, 11.1032, 46.9615)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31B9 #60B931
analogous
#4631B9 #8A31B9 #B931A4
triadic
#8A31B9 #B98A31 #31B98A
tetradic
#8A31B9 #B94631 #60B931 #31A4B9
square
#8A31B9 #B94631 #60B931 #31A4B9
split-complementary
#8A31B9 #A4B931 #31B946
monochromatic
#421758 #662489 #8A31B9 #A755D2 #C086DF

Accessibility & contrast

On white

6.52
#8A31B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31B9
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31B9#FFFFFF#000000##FFFFFF
##8A31B91.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABD
Deuteranopia (green-blind)
#185FB6
Tritanopia (blue-blind)
#845073
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a31b9;
/* rgb */ color: rgb(138, 49, 185);
/* oklch */ color: oklch(50.7% 0.206 311.0);
Tailwind
colors: {
  custom: {
    50: '#b172cf',
    500: '#8a31b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a31b9;
$custom-light: #b172cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31b9",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 279.265,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50681,
    "c": 0.20615,
    "h": 311
  },
  "luminance": 0.11103
}

Semantic roles & 50–950 ramp

primary
#8A31B9
secondary
#97C87D
accent
#E1467C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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