#8A31B0#8A31B0

#8A31B0 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.198 H 313.7°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8A31B0
RGBrgb(138, 49, 176)
HSLhsl(282, 56%, 44%)
HSVhsv(282, 72%, 69%)
CMYKcmyk(21.6%, 72.2%, 0%, 31%)
CIE-LABlab(39.13, 56.83, -50.67)
CIE-LCHlch(39.13, 76.14, 318.28°)
OKLaboklab(50.04% 0.1364 -0.143)
OKLCHoklch(50.04% 0.198 313.7)
XYZxyz(19.4147, 10.7351, 42.1153)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31B0 #57B031
analogous
#4B31B0 #8A31B0 #B03197
triadic
#8A31B0 #B08A31 #31B08A
tetradic
#8A31B0 #B04B31 #57B031 #3197B0
square
#8A31B0 #B04B31 #57B031 #3197B0
split-complementary
#8A31B0 #97B031 #31B04B
monochromatic
#3F1650 #642480 #8A31B0 #A850CE #C080DC

Accessibility & contrast

On white

6.67
#8A31B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A31B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31B0
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31B0#FFFFFF#000000##FFFFFF
##8A31B01.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B4
Deuteranopia (green-blind)
#285EAD
Tritanopia (blue-blind)
#864C6D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a31b0;
/* rgb */ color: rgb(138, 49, 176);
/* oklch */ color: oklch(50.0% 0.198 313.7);
Tailwind
colors: {
  custom: {
    50: '#b071c8',
    500: '#8a31b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a31b0;
$custom-light: #b071c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31b0",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 282.047,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50041,
    "c": 0.19761,
    "h": 313.7
  },
  "luminance": 0.10734
}

Semantic roles & 50–950 ramp

primary
#8A31B0
secondary
#8FC578
accent
#E04875
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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