#8A30A6#8A30A6

#8A30A6 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.189 H 317.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8A30A6
RGBrgb(138, 48, 166)
HSLhsl(286, 55%, 42%)
HSVhsv(286, 71%, 65%)
CMYKcmyk(16.9%, 71.1%, 0%, 34.9%)
CIE-LABlab(38.32, 55.19, -46.00)
CIE-LCHlch(38.32, 71.85, 320.19°)
OKLaboklab(49.26% 0.1385 -0.1293)
OKLCHoklch(49.26% 0.189 317)
XYZxyz(18.4201, 10.2711, 37.0812)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30A6 #4CA630
analogous
#4F30A6 #8A30A6 #A63087
triadic
#8A30A6 #A68A30 #30A68A
tetradic
#8A30A6 #A64F30 #4CA630 #3087A6
square
#8A30A6 #A64F30 #4CA630 #3087A6
split-complementary
#8A30A6 #87A630 #30A64F
monochromatic
#3B1547 #632277 #8A30A6 #AC49CA #C178D8

Accessibility & contrast

On white

6.88
#8A30A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A30A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30A6
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30A6#FFFFFF#000000##FFFFFF
##8A30A61.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#325DA3
Tritanopia (blue-blind)
#894768
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a30a6;
/* rgb */ color: rgb(138, 48, 166);
/* oklch */ color: oklch(49.3% 0.189 317.0);
Tailwind
colors: {
  custom: {
    50: '#b070c1',
    500: '#8a30a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a30a6;
$custom-light: #b070c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30a6",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 285.763,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49256,
    "c": 0.18945,
    "h": 317
  },
  "luminance": 0.1027
}

Semantic roles & 50–950 ramp

primary
#8A30A6
secondary
#84C071
accent
#DE496D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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