#8A31BF#8A31BF

#8A31BF is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.1% C 0.212 H 309.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A31BF
RGBrgb(138, 49, 191)
HSLhsl(278, 59%, 47%)
HSVhsv(278, 74%, 75%)
CMYKcmyk(27.7%, 74.3%, 0%, 25.1%)
CIE-LABlab(40.18, 60.01, -57.81)
CIE-LCHlch(40.18, 83.33, 316.07°)
OKLaboklab(51.12% 0.1342 -0.1639)
OKLCHoklch(51.12% 0.212 309.3)
XYZxyz(20.9816, 11.3619, 50.3679)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31BF #66BF31
analogous
#4331BF #8A31BF #BF31AD
triadic
#8A31BF #BF8A31 #31BF8A
tetradic
#8A31BF #BF4331 #66BF31 #31ADBF
square
#8A31BF #BF4331 #66BF31 #31ADBF
split-complementary
#8A31BF #ADBF31 #31BF43
monochromatic
#44185E #67258E #8A31BF #A659D4 #C08AE1

Accessibility & contrast

On white

6.42
#8A31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31BF
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31BF#FFFFFF#000000##FFFFFF
##8A31BF1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0360BC
Tritanopia (blue-blind)
#825376
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a31bf;
/* rgb */ color: rgb(138, 49, 191);
/* oklch */ color: oklch(51.1% 0.212 309.3);
Tailwind
colors: {
  custom: {
    50: '#b172d3',
    500: '#8a31bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a31bf;
$custom-light: #b172d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31bf",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 277.606,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5112,
    "c": 0.21186,
    "h": 309.3
  },
  "luminance": 0.11361
}

Semantic roles & 50–950 ramp

primary
#8A31BF
secondary
#9DCB81
accent
#E24580
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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