#8A31B8#8A31B8

#8A31B8 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.6% C 0.205 H 311.3°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8A31B8
RGBrgb(138, 49, 184)
HSLhsl(280, 58%, 46%)
HSVhsv(280, 73%, 72%)
CMYKcmyk(25%, 73.4%, 0%, 27.8%)
CIE-LABlab(39.68, 58.52, -54.51)
CIE-LCHlch(39.68, 79.97, 317.03°)
OKLaboklab(50.61% 0.1353 -0.1542)
OKLCHoklch(50.61% 0.205 311.3)
XYZxyz(20.2296, 11.0611, 46.4074)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31B8 #5FB831
analogous
#4731B8 #8A31B8 #B831A2
triadic
#8A31B8 #B88A31 #31B88A
tetradic
#8A31B8 #B84731 #5FB831 #31A2B8
square
#8A31B8 #B84731 #5FB831 #31A2B8
split-complementary
#8A31B8 #A2B831 #31B847
monochromatic
#421757 #662488 #8A31B8 #A755D2 #C085DE

Accessibility & contrast

On white

6.54
#8A31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31B8
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31B8#FFFFFF#000000##FFFFFF
##8A31B81.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#1A5FB5
Tritanopia (blue-blind)
#845072
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a31b8;
/* rgb */ color: rgb(138, 49, 184);
/* oklch */ color: oklch(50.6% 0.205 311.3);
Tailwind
colors: {
  custom: {
    50: '#b172ce',
    500: '#8a31b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a31b8;
$custom-light: #b172ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31b8",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 279.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50609,
    "c": 0.2052,
    "h": 311.3
  },
  "luminance": 0.11061
}

Semantic roles & 50–950 ramp

primary
#8A31B8
secondary
#96C87D
accent
#E1477B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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