#8A31C8#8A31C8

#8A31C8 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.8% C 0.220 H 306.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8A31C8
RGBrgb(138, 49, 200)
HSLhsl(275, 61%, 49%)
HSVhsv(275, 76%, 78%)
CMYKcmyk(31%, 75.5%, 0%, 21.6%)
CIE-LABlab(40.85, 61.97, -61.98)
CIE-LCHlch(40.85, 87.65, 314.99°)
OKLaboklab(51.8% 0.1325 -0.1762)
OKLCHoklch(51.8% 0.22 306.9)
XYZxyz(22.0026, 11.7703, 55.7452)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31C8 #6FC831
analogous
#3E31C8 #8A31C8 #C831BB
triadic
#8A31C8 #C88A31 #31C88A
tetradic
#8A31C8 #C83E31 #6FC831 #31BBC8
square
#8A31C8 #C83E31 #6FC831 #31BBC8
split-complementary
#8A31C8 #BBC831 #31C83E
monochromatic
#461966 #682597 #8A31C8 #A65FD8 #C190E4

Accessibility & contrast

On white

6.26
#8A31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31C8
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31C8#FFFFFF#000000##FFFFFF
##8A31C81.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#7F567B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a31c8;
/* rgb */ color: rgb(138, 49, 200);
/* oklch */ color: oklch(51.8% 0.220 306.9);
Tailwind
colors: {
  custom: {
    50: '#b272da',
    500: '#8a31c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a31c8;
$custom-light: #b272da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31c8",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 275.364,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51798,
    "c": 0.22043,
    "h": 306.9
  },
  "luminance": 0.1177
}

Semantic roles & 50–950 ramp

primary
#8A31C8
secondary
#A4CE86
accent
#E44486
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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