#8A31C6#8A31C6

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

Color values

HEX#8A31C6
RGBrgb(138, 49, 198)
HSLhsl(276, 60%, 48%)
HSVhsv(276, 75%, 78%)
CMYKcmyk(30.3%, 75.3%, 0%, 22.4%)
CIE-LABlab(40.70, 61.53, -61.06)
CIE-LCHlch(40.70, 86.69, 315.22°)
OKLaboklab(51.65% 0.1329 -0.1735)
OKLCHoklch(51.65% 0.219 307.4)
XYZxyz(21.7704, 11.6774, 54.5222)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31C6 #6DC631
analogous
#3F31C6 #8A31C6 #C631B7
triadic
#8A31C6 #C68A31 #31C68A
tetradic
#8A31C6 #C63F31 #6DC631 #31B7C6
square
#8A31C6 #C63F31 #6DC631 #31B7C6
split-complementary
#8A31C6 #B7C631 #31C63F
monochromatic
#461964 #682595 #8A31C6 #A65DD7 #C18EE3

Accessibility & contrast

On white

6.30
#8A31C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A31C6
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31C6#FFFFFF#000000##FFFFFF
##8A31C61.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#0061C3
Tritanopia (blue-blind)
#80567A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a31c6;
/* rgb */ color: rgb(138, 49, 198);
/* oklch */ color: oklch(51.6% 0.219 307.4);
Tailwind
colors: {
  custom: {
    50: '#b272d8',
    500: '#8a31c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a31c6;
$custom-light: #b272d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31c6",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 275.839,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51646,
    "c": 0.21853,
    "h": 307.4
  },
  "luminance": 0.11677
}

Semantic roles & 50–950 ramp

primary
#8A31C6
secondary
#A2CE85
accent
#E34484
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8A31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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