#8A3AC6#8A3AC6

#8A3AC6 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.6% C 0.208 H 306.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8A3AC6
RGBrgb(138, 58, 198)
HSLhsl(274, 55%, 50%)
HSVhsv(274, 71%, 78%)
CMYKcmyk(30.3%, 70.7%, 0%, 22.4%)
CIE-LABlab(42.01, 57.81, -58.93)
CIE-LCHlch(42.01, 82.55, 314.45°)
OKLaboklab(52.57% 0.1243 -0.1673)
OKLCHoklch(52.57% 0.208 306.6)
XYZxyz(22.1851, 12.5068, 54.6605)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AC6 #76C63A
analogous
#443AC6 #8A3AC6 #C63ABC
triadic
#8A3AC6 #C68A3A #3AC68A
tetradic
#8A3AC6 #C6443A #76C63A #3ABCC6
square
#8A3AC6 #C6443A #76C63A #3ABCC6
split-complementary
#8A3AC6 #BCC63A #3AC644
monochromatic
#481E68 #692C97 #8A3AC6 #A669D4 #C299E1

Accessibility & contrast

On white

6.00
#8A3AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8A3AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AC6
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AC6#FFFFFF#000000##FFFFFF
##8A3AC61.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0364C3
Tritanopia (blue-blind)
#805A7C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3ac6;
/* rgb */ color: rgb(138, 58, 198);
/* oklch */ color: oklch(52.6% 0.208 306.6);
Tailwind
colors: {
  custom: {
    50: '#b177d8',
    500: '#8a3ac6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ac6;
$custom-light: #b177d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ac6",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 198
  },
  "hsl": {
    "h": 274.286,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52574,
    "c": 0.20843,
    "h": 306.6
  },
  "luminance": 0.12507
}

Semantic roles & 50–950 ramp

primary
#8A3AC6
secondary
#A9CD8F
accent
#DE4989
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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