#8A31BA#8A31BA

#8A31BA is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.8% C 0.207 H 310.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8A31BA
RGBrgb(138, 49, 186)
HSLhsl(279, 58%, 46%)
HSVhsv(279, 74%, 73%)
CMYKcmyk(25.8%, 73.7%, 0%, 27.1%)
CIE-LABlab(39.82, 58.94, -55.46)
CIE-LCHlch(39.82, 80.93, 316.75°)
OKLaboklab(50.75% 0.135 -0.157)
OKLCHoklch(50.75% 0.207 310.7)
XYZxyz(20.4408, 11.1455, 47.5194)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31BA #61BA31
analogous
#4531BA #8A31BA #BA31A5
triadic
#8A31BA #BA8A31 #31BA8A
tetradic
#8A31BA #BA4531 #61BA31 #31A5BA
square
#8A31BA #BA4531 #61BA31 #31A5BA
split-complementary
#8A31BA #A5BA31 #31BA45
monochromatic
#421759 #66248A #8A31BA #A756D2 #C086DF

Accessibility & contrast

On white

6.50
#8A31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31BA
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31BA#FFFFFF#000000##FFFFFF
##8A31BA1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#165FB7
Tritanopia (blue-blind)
#845073
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a31ba;
/* rgb */ color: rgb(138, 49, 186);
/* oklch */ color: oklch(50.8% 0.207 310.7);
Tailwind
colors: {
  custom: {
    50: '#b172d0',
    500: '#8a31ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a31ba;
$custom-light: #b172d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31ba",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 278.978,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50753,
    "c": 0.2071,
    "h": 310.7
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#8A31BA
secondary
#98C97E
accent
#E2467D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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