#8A3AB6#8A3AB6

#8A3AB6 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.4% C 0.192 H 311.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A3AB6
RGBrgb(138, 58, 182)
HSLhsl(279, 52%, 47%)
HSVhsv(279, 68%, 71%)
CMYKcmyk(24.2%, 68.1%, 0%, 28.6%)
CIE-LABlab(40.91, 54.25, -51.35)
CIE-LCHlch(40.91, 74.70, 316.57°)
OKLaboklab(51.44% 0.1263 -0.145)
OKLCHoklch(51.44% 0.192 311)
XYZxyz(20.4362, 11.8073, 45.4494)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AB6 #66B63A
analogous
#4C3AB6 #8A3AB6 #B63AA4
triadic
#8A3AB6 #B68A3A #3AB68A
tetradic
#8A3AB6 #B64C3A #66B63A #3AA4B6
square
#8A3AB6 #B64C3A #66B63A #3AA4B6
split-complementary
#8A3AB6 #A4B63A #3AB64C
monochromatic
#441C59 #672B88 #8A3AB6 #A661CD #C08FDB

Accessibility & contrast

On white

6.25
#8A3AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A3AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AB6
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AB6#FFFFFF#000000##FFFFFF
##8A3AB61.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#2A62B3
Tritanopia (blue-blind)
#845473
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3ab6;
/* rgb */ color: rgb(138, 58, 182);
/* oklch */ color: oklch(51.4% 0.192 311.0);
Tailwind
colors: {
  custom: {
    50: '#b076cd',
    500: '#8a3ab6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ab6;
$custom-light: #b076cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ab6",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 278.71,
    "s": 51.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51438,
    "c": 0.19229,
    "h": 311
  },
  "luminance": 0.11807
}

Semantic roles & 50–950 ramp

primary
#8A3AB6
secondary
#9DC686
accent
#DB4D7F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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