#8A31C3#8A31C3

#8A31C3 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.216 H 308.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A31C3
RGBrgb(138, 49, 195)
HSLhsl(277, 60%, 48%)
HSVhsv(277, 75%, 76%)
CMYKcmyk(29.2%, 74.9%, 0%, 23.5%)
CIE-LABlab(40.48, 60.88, -59.67)
CIE-LCHlch(40.48, 85.25, 315.57°)
OKLaboklab(51.42% 0.1335 -0.1694)
OKLCHoklch(51.42% 0.216 308.2)
XYZxyz(21.4278, 11.5404, 52.7179)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31C3 #6AC331
analogous
#4131C3 #8A31C3 #C331B3
triadic
#8A31C3 #C38A31 #31C38A
tetradic
#8A31C3 #C34131 #6AC331 #31B3C3
square
#8A31C3 #C34131 #6AC331 #31B3C3
split-complementary
#8A31C3 #B3C331 #31C341
monochromatic
#451861 #672592 #8A31C3 #A65BD6 #C18CE2

Accessibility & contrast

On white

6.35
#8A31C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A31C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31C3
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31C3#FFFFFF#000000##FFFFFF
##8A31C31.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#815478
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a31c3;
/* rgb */ color: rgb(138, 49, 195);
/* oklch */ color: oklch(51.4% 0.216 308.2);
Tailwind
colors: {
  custom: {
    50: '#b172d6',
    500: '#8a31c3',
    950: '#000000',
  },
}
SCSS
$custom: #8a31c3;
$custom-light: #b172d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31c3",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 276.575,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51419,
    "c": 0.21567,
    "h": 308.2
  },
  "luminance": 0.1154
}

Semantic roles & 50–950 ramp

primary
#8A31C3
secondary
#A0CC83
accent
#E34583
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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