#8A31BC#8A31BC

#8A31BC is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.9% C 0.209 H 310.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#8A31BC
RGBrgb(138, 49, 188)
HSLhsl(278, 59%, 46%)
HSVhsv(278, 74%, 74%)
CMYKcmyk(26.6%, 73.9%, 0%, 26.3%)
CIE-LABlab(39.97, 59.37, -56.40)
CIE-LCHlch(39.97, 81.89, 316.47°)
OKLaboklab(50.9% 0.1347 -0.1598)
OKLCHoklch(50.9% 0.209 310.1)
XYZxyz(20.6549, 11.2312, 48.6470)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31BC #63BC31
analogous
#4431BC #8A31BC #BC31A9
triadic
#8A31BC #BC8A31 #31BC8A
tetradic
#8A31BC #BC4431 #63BC31 #31A9BC
square
#8A31BC #BC4431 #63BC31 #31A9BC
split-complementary
#8A31BC #A9BC31 #31BC44
monochromatic
#43185B #66248B #8A31BC #A757D3 #C088E0

Accessibility & contrast

On white

6.47
#8A31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31BC
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31BC#FFFFFF#000000##FFFFFF
##8A31BC1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#105FB9
Tritanopia (blue-blind)
#835174
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a31bc;
/* rgb */ color: rgb(138, 49, 188);
/* oklch */ color: oklch(50.9% 0.209 310.1);
Tailwind
colors: {
  custom: {
    50: '#b172d1',
    500: '#8a31bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a31bc;
$custom-light: #b172d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31bc",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 278.417,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50899,
    "c": 0.209,
    "h": 310.1
  },
  "luminance": 0.11231
}

Semantic roles & 50–950 ramp

primary
#8A31BC
secondary
#9ACA7F
accent
#E2467E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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