#8A2AC6#8A2AC6

#8A2AC6 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 51.0% C 0.225 H 308.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8A2AC6
RGBrgb(138, 42, 198)
HSLhsl(277, 65%, 47%)
HSVhsv(277, 79%, 78%)
CMYKcmyk(30.3%, 78.8%, 0%, 22.4%)
CIE-LABlab(39.81, 64.09, -62.51)
CIE-LCHlch(39.81, 89.53, 315.72°)
OKLaboklab(51.02% 0.1387 -0.1777)
OKLCHoklch(51.02% 0.225 308)
XYZxyz(21.5001, 11.1367, 54.4321)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AC6 #66C62A
analogous
#3C2AC6 #8A2AC6 #C62AB4
triadic
#8A2AC6 #C68A2A #2AC68A
tetradic
#8A2AC6 #C63C2A #66C62A #2AB4C6
square
#8A2AC6 #C63C2A #66C62A #2AB4C6
split-complementary
#8A2AC6 #B4C62A #2AC63C
monochromatic
#441561 #671F94 #8A2AC6 #A653DA #C085E5

Accessibility & contrast

On white

6.51
#8A2AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A2AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2AC6
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AC6#FFFFFF#000000##FFFFFF
##8A2AC61.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACA
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#805278
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a2ac6;
/* rgb */ color: rgb(138, 42, 198);
/* oklch */ color: oklch(51.0% 0.225 308.0);
Tailwind
colors: {
  custom: {
    50: '#b26fd8',
    500: '#8a2ac6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ac6;
$custom-light: #b26fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ac6",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 198
  },
  "hsl": {
    "h": 276.923,
    "s": 65,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51022,
    "c": 0.22543,
    "h": 308
  },
  "luminance": 0.11136
}

Semantic roles & 50–950 ramp

primary
#8A2AC6
secondary
#9DCE7D
accent
#E84080
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8A2AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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