#8A31C0#8A31C0

#8A31C0 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.2% C 0.213 H 309.0°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A31C0
RGBrgb(138, 49, 192)
HSLhsl(277, 59%, 47%)
HSVhsv(277, 74%, 75%)
CMYKcmyk(28.1%, 74.5%, 0%, 24.7%)
CIE-LABlab(40.26, 60.23, -58.28)
CIE-LCHlch(40.26, 83.81, 315.94°)
OKLaboklab(51.2% 0.134 -0.1653)
OKLCHoklch(51.2% 0.213 309)
XYZxyz(21.0920, 11.4061, 50.9494)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31C0 #67C031
analogous
#4331C0 #8A31C0 #C031AE
triadic
#8A31C0 #C08A31 #31C08A
tetradic
#8A31C0 #C04331 #67C031 #31AEC0
square
#8A31C0 #C04331 #67C031 #31AEC0
split-complementary
#8A31C0 #AEC031 #31C043
monochromatic
#44185E #67258F #8A31C0 #A659D5 #C08AE1

Accessibility & contrast

On white

6.40
#8A31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31C0
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31C0#FFFFFF#000000##FFFFFF
##8A31C01.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#0060BD
Tritanopia (blue-blind)
#825376
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a31c0;
/* rgb */ color: rgb(138, 49, 192);
/* oklch */ color: oklch(51.2% 0.213 309.0);
Tailwind
colors: {
  custom: {
    50: '#b172d4',
    500: '#8a31c0',
    950: '#000000',
  },
}
SCSS
$custom: #8a31c0;
$custom-light: #b172d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31c0",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 277.343,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51195,
    "c": 0.21281,
    "h": 309
  },
  "luminance": 0.11406
}

Semantic roles & 50–950 ramp

primary
#8A31C0
secondary
#9DCB82
accent
#E34581
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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