#8A31C5#8A31C5

#8A31C5 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.6% C 0.218 H 307.7°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A31C5
RGBrgb(138, 49, 197)
HSLhsl(276, 60%, 48%)
HSVhsv(276, 75%, 77%)
CMYKcmyk(29.9%, 75.1%, 0%, 22.7%)
CIE-LABlab(40.62, 61.31, -60.60)
CIE-LCHlch(40.62, 86.21, 315.34°)
OKLaboklab(51.57% 0.1331 -0.1721)
OKLCHoklch(51.57% 0.218 307.7)
XYZxyz(21.6555, 11.6314, 53.9168)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31C5 #6CC531
analogous
#4031C5 #8A31C5 #C531B6
triadic
#8A31C5 #C58A31 #31C58A
tetradic
#8A31C5 #C54031 #6CC531 #31B6C5
square
#8A31C5 #C54031 #6CC531 #31B6C5
split-complementary
#8A31C5 #B6C531 #31C540
monochromatic
#451963 #682594 #8A31C5 #A65DD7 #C18EE3

Accessibility & contrast

On white

6.31
#8A31C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A31C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31C5
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31C5#FFFFFF#000000##FFFFFF
##8A31C51.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#805579
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a31c5;
/* rgb */ color: rgb(138, 49, 197);
/* oklch */ color: oklch(51.6% 0.218 307.7);
Tailwind
colors: {
  custom: {
    50: '#b172d7',
    500: '#8a31c5',
    950: '#000000',
  },
}
SCSS
$custom: #8a31c5;
$custom-light: #b172d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31c5",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 276.081,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5157,
    "c": 0.21757,
    "h": 307.7
  },
  "luminance": 0.11631
}

Semantic roles & 50–950 ramp

primary
#8A31C5
secondary
#A2CD85
accent
#E34484
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #8A31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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