#8A3AC8#8A3AC8

#8A3AC8 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.210 H 306.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A3AC8
RGBrgb(138, 58, 200)
HSLhsl(274, 56%, 51%)
HSVhsv(274, 71%, 78%)
CMYKcmyk(31%, 71%, 0%, 21.6%)
CIE-LABlab(42.15, 58.26, -59.86)
CIE-LCHlch(42.15, 83.53, 314.22°)
OKLaboklab(52.72% 0.124 -0.17)
OKLCHoklch(52.72% 0.21 306.1)
XYZxyz(22.4173, 12.5997, 55.8834)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AC8 #78C83A
analogous
#433AC8 #8A3AC8 #C83ABF
triadic
#8A3AC8 #C88A3A #3AC88A
tetradic
#8A3AC8 #C8433A #78C83A #3ABFC8
square
#8A3AC8 #C8433A #78C83A #3ABFC8
split-complementary
#8A3AC8 #BFC83A #3AC843
monochromatic
#491E6A #692B9A #8A3AC8 #A66AD5 #C39AE3

Accessibility & contrast

On white

5.97
#8A3AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A3AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AC8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AC8#FFFFFF#000000##FFFFFF
##8A3AC81.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#7F5B7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3ac8;
/* rgb */ color: rgb(138, 58, 200);
/* oklch */ color: oklch(52.7% 0.210 306.1);
Tailwind
colors: {
  custom: {
    50: '#b177da',
    500: '#8a3ac8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ac8;
$custom-light: #b177da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ac8",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 200
  },
  "hsl": {
    "h": 273.803,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52721,
    "c": 0.21046,
    "h": 306.1
  },
  "luminance": 0.126
}

Semantic roles & 50–950 ramp

primary
#8A3AC8
secondary
#ABCE8F
accent
#E0488A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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