#8A31C4#8A31C4

#8A31C4 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.5% C 0.217 H 308.0°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#8A31C4
RGBrgb(138, 49, 196)
HSLhsl(276, 60%, 48%)
HSVhsv(276, 75%, 77%)
CMYKcmyk(29.6%, 75%, 0%, 23.1%)
CIE-LABlab(40.55, 61.10, -60.14)
CIE-LCHlch(40.55, 85.73, 315.45°)
OKLaboklab(51.49% 0.1333 -0.1708)
OKLCHoklch(51.49% 0.217 308)
XYZxyz(21.5413, 11.5857, 53.3153)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31C4 #6BC431
analogous
#4131C4 #8A31C4 #C431B4
triadic
#8A31C4 #C48A31 #31C48A
tetradic
#8A31C4 #C44131 #6BC431 #31B4C4
square
#8A31C4 #C44131 #6BC431 #31B4C4
split-complementary
#8A31C4 #B4C431 #31C441
monochromatic
#451962 #682593 #8A31C4 #A65CD6 #C18DE2

Accessibility & contrast

On white

6.33
#8A31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A31C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31C4
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31C4#FFFFFF#000000##FFFFFF
##8A31C41.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#815579
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a31c4;
/* rgb */ color: rgb(138, 49, 196);
/* oklch */ color: oklch(51.5% 0.217 308.0);
Tailwind
colors: {
  custom: {
    50: '#b172d7',
    500: '#8a31c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a31c4;
$custom-light: #b172d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31c4",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 276.327,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51494,
    "c": 0.21661,
    "h": 308
  },
  "luminance": 0.11585
}

Semantic roles & 50–950 ramp

primary
#8A31C4
secondary
#A1CD84
accent
#E34583
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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