#8A3EB5#8A3EB5

#8A3EB5 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.186 H 310.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#8A3EB5
RGBrgb(138, 62, 181)
HSLhsl(278, 49%, 48%)
HSVhsv(278, 66%, 71%)
CMYKcmyk(23.8%, 65.7%, 0%, 29%)
CIE-LABlab(41.51, 52.18, -49.80)
CIE-LCHlch(41.51, 72.13, 316.34°)
OKLaboklab(51.85% 0.1218 -0.1405)
OKLCHoklch(51.85% 0.186 310.9)
XYZxyz(20.5428, 12.1852, 44.9769)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EB5 #69B53E
analogous
#4E3EB5 #8A3EB5 #B53EA5
triadic
#8A3EB5 #B58A3E #3EB58A
tetradic
#8A3EB5 #B54E3E #69B53E #3EA5B5
square
#8A3EB5 #B54E3E #69B53E #3EA5B5
split-complementary
#8A3EB5 #A5B53E #3EB54E
monochromatic
#441F5A #672E87 #8A3EB5 #A666CA #C193DA

Accessibility & contrast

On white

6.11
#8A3EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8A3EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EB5
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EB5#FFFFFF#000000##FFFFFF
##8A3EB51.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#3063B2
Tritanopia (blue-blind)
#855674
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3eb5;
/* rgb */ color: rgb(138, 62, 181);
/* oklch */ color: oklch(51.8% 0.186 310.9);
Tailwind
colors: {
  custom: {
    50: '#b078cc',
    500: '#8a3eb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eb5;
$custom-light: #b078cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eb5",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 278.319,
    "s": 48.971,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51849,
    "c": 0.18594,
    "h": 310.9
  },
  "luminance": 0.12185
}

Semantic roles & 50–950 ramp

primary
#8A3EB5
secondary
#9FC589
accent
#D94F81
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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