#8A32B8#8A32B8

#8A32B8 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.7% C 0.204 H 311.2°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8A32B8
RGBrgb(138, 50, 184)
HSLhsl(279, 57%, 46%)
HSVhsv(279, 73%, 72%)
CMYKcmyk(25%, 72.8%, 0%, 27.8%)
CIE-LABlab(39.82, 58.11, -54.28)
CIE-LCHlch(39.82, 79.52, 316.95°)
OKLaboklab(50.71% 0.1344 -0.1536)
OKLCHoklch(50.71% 0.204 311.2)
XYZxyz(20.2719, 11.1457, 46.4215)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A32B8 #60B832
analogous
#4732B8 #8A32B8 #B832A3
triadic
#8A32B8 #B88A32 #32B88A
tetradic
#8A32B8 #B84732 #60B832 #32A3B8
square
#8A32B8 #B84732 #60B832 #32A3B8
split-complementary
#8A32B8 #A3B832 #32B847
monochromatic
#421858 #662588 #8A32B8 #A756D1 #C086DE

Accessibility & contrast

On white

6.50
#8A32B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A32B8
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A32B8#FFFFFF#000000##FFFFFF
##8A32B81.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#1C5FB5
Tritanopia (blue-blind)
#845072
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a32b8;
/* rgb */ color: rgb(138, 50, 184);
/* oklch */ color: oklch(50.7% 0.204 311.2);
Tailwind
colors: {
  custom: {
    50: '#b172ce',
    500: '#8a32b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a32b8;
$custom-light: #b172ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a32b8",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 184
  },
  "hsl": {
    "h": 279.403,
    "s": 57.265,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50709,
    "c": 0.20406,
    "h": 311.2
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#8A32B8
secondary
#97C87E
accent
#E1477C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A32B8

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

Preview Lab → · Contrast checker → · Palette generator →

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