#8A32B9#8A32B9

#8A32B9 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.8% C 0.205 H 310.9°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#8A32B9
RGBrgb(138, 50, 185)
HSLhsl(279, 57%, 46%)
HSVhsv(279, 73%, 73%)
CMYKcmyk(25.4%, 73%, 0%, 27.5%)
CIE-LABlab(39.89, 58.33, -54.75)
CIE-LCHlch(39.89, 80.00, 316.81°)
OKLaboklab(50.78% 0.1342 -0.155)
OKLCHoklch(50.78% 0.205 310.9)
XYZxyz(20.3771, 11.1877, 46.9755)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A32B9 #61B932
analogous
#4632B9 #8A32B9 #B932A4
triadic
#8A32B9 #B98A32 #32B98A
tetradic
#8A32B9 #B94632 #61B932 #32A4B9
square
#8A32B9 #B94632 #61B932 #32A4B9
split-complementary
#8A32B9 #A4B932 #32B946
monochromatic
#421859 #662589 #8A32B9 #A757D2 #C087DF

Accessibility & contrast

On white

6.49
#8A32B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A32B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A32B9
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A32B9#FFFFFF#000000##FFFFFF
##8A32B91.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABD
Deuteranopia (green-blind)
#1A5FB6
Tritanopia (blue-blind)
#845173
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a32b9;
/* rgb */ color: rgb(138, 50, 185);
/* oklch */ color: oklch(50.8% 0.205 310.9);
Tailwind
colors: {
  custom: {
    50: '#b172cf',
    500: '#8a32b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a32b9;
$custom-light: #b172cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a32b9",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 185
  },
  "hsl": {
    "h": 279.111,
    "s": 57.447,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50781,
    "c": 0.20501,
    "h": 310.9
  },
  "luminance": 0.11187
}

Semantic roles & 50–950 ramp

primary
#8A32B9
secondary
#98C87F
accent
#E1477D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A32B9

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

Preview Lab → · Contrast checker → · Palette generator →

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