#8A3EB4#8A3EB4

#8A3EB4 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.8% C 0.185 H 311.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8A3EB4
RGBrgb(138, 62, 180)
HSLhsl(279, 49%, 47%)
HSVhsv(279, 66%, 71%)
CMYKcmyk(23.3%, 65.6%, 0%, 29.4%)
CIE-LABlab(41.44, 51.96, -49.31)
CIE-LCHlch(41.44, 71.63, 316.50°)
OKLaboklab(51.78% 0.1219 -0.1391)
OKLCHoklch(51.78% 0.185 311.2)
XYZxyz(20.4405, 12.1443, 44.4385)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EB4 #68B43E
analogous
#4F3EB4 #8A3EB4 #B43EA3
triadic
#8A3EB4 #B48A3E #3EB48A
tetradic
#8A3EB4 #B44F3E #68B43E #3EA3B4
square
#8A3EB4 #B44F3E #68B43E #3EA3B4
split-complementary
#8A3EB4 #A3B43E #3EB44F
monochromatic
#441F59 #672E86 #8A3EB4 #A665CA #C093DA

Accessibility & contrast

On white

6.12
#8A3EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A3EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EB4
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EB4#FFFFFF#000000##FFFFFF
##8A3EB41.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#3163B1
Tritanopia (blue-blind)
#855674
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3eb4;
/* rgb */ color: rgb(138, 62, 180);
/* oklch */ color: oklch(51.8% 0.185 311.2);
Tailwind
colors: {
  custom: {
    50: '#b078cb',
    500: '#8a3eb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eb4;
$custom-light: #b078cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eb4",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 278.644,
    "s": 48.76,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51782,
    "c": 0.18491,
    "h": 311.2
  },
  "luminance": 0.12144
}

Semantic roles & 50–950 ramp

primary
#8A3EB4
secondary
#9EC589
accent
#D84F80
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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