#8A3AD9#8A3AD9

#8A3AD9 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 54.0% C 0.228 H 302.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8A3AD9
RGBrgb(138, 58, 217)
HSLhsl(270, 68%, 54%)
HSVhsv(270, 73%, 85%)
CMYKcmyk(36.4%, 73.3%, 0%, 14.9%)
CIE-LABlab(43.42, 62.17, -67.61)
CIE-LCHlch(43.42, 91.85, 312.60°)
OKLaboklab(54.01% 0.1209 -0.1928)
OKLCHoklch(54.01% 0.228 302.1)
XYZxyz(24.5157, 13.4391, 66.9346)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AD9 #89D93A
analogous
#3B3AD9 #8A3AD9 #D93AD9
triadic
#8A3AD9 #D98A3A #3AD98A
tetradic
#8A3AD9 #D93B3A #89D93A #3AD9D9
square
#8A3AD9 #D93B3A #89D93A #3AD9D9
split-complementary
#8A3AD9 #D9D93A #3AD93B
monochromatic
#4D1980 #6B23B3 #8A3AD9 #A86DE3 #C7A1ED

Accessibility & contrast

On white

5.69
#8A3AD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8A3AD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AD9
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AD9#FFFFFF#000000##FFFFFF
##8A3AD91.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#796287
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a3ad9;
/* rgb */ color: rgb(138, 58, 217);
/* oklch */ color: oklch(54.0% 0.228 302.1);
Tailwind
colors: {
  custom: {
    50: '#b378e6',
    500: '#8a3ad9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ad9;
$custom-light: #b378e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ad9",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 217
  },
  "hsl": {
    "h": 270.189,
    "s": 67.66,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54012,
    "c": 0.22758,
    "h": 302.1
  },
  "luminance": 0.13439
}

Semantic roles & 50–950 ramp

primary
#8A3AD9
secondary
#B7D995
accent
#EB3D93
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A3AD9

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

Preview Lab → · Contrast checker → · Palette generator →

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