#8A30A1#8A30A1

#8A30A1 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.9% C 0.185 H 318.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8A30A1
RGBrgb(138, 48, 161)
HSLhsl(288, 54%, 41%)
HSVhsv(288, 70%, 63%)
CMYKcmyk(14.3%, 70.2%, 0%, 36.9%)
CIE-LABlab(38.01, 54.19, -43.51)
CIE-LCHlch(38.01, 69.50, 321.24°)
OKLaboklab(48.93% 0.1388 -0.122)
OKLCHoklch(48.93% 0.185 318.7)
XYZxyz(17.9703, 10.0912, 34.7125)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30A1 #47A130
analogous
#5130A1 #8A30A1 #A1307F
triadic
#8A30A1 #A18A30 #30A18A
tetradic
#8A30A1 #A15130 #47A130 #307FA1
square
#8A30A1 #A15130 #47A130 #307FA1
split-complementary
#8A30A1 #7FA130 #30A151
monochromatic
#391443 #622272 #8A30A1 #AE46C8 #C275D6

Accessibility & contrast

On white

6.96
#8A30A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A30A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30A1
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30A1#FFFFFF#000000##FFFFFF
##8A30A11.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A4
Deuteranopia (green-blind)
#375C9E
Tritanopia (blue-blind)
#8A4565
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a30a1;
/* rgb */ color: rgb(138, 48, 161);
/* oklch */ color: oklch(48.9% 0.185 318.7);
Tailwind
colors: {
  custom: {
    50: '#b070bd',
    500: '#8a30a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a30a1;
$custom-light: #b070bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30a1",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 161
  },
  "hsl": {
    "h": 287.788,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48925,
    "c": 0.18481,
    "h": 318.7
  },
  "luminance": 0.1009
}

Semantic roles & 50–950 ramp

primary
#8A30A1
secondary
#7FBE6F
accent
#DD4A68
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A30A1

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

Preview Lab → · Contrast checker → · Palette generator →

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