#8A30A5#8A30A5

#8A30A5 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.189 H 317.3°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8A30A5
RGBrgb(138, 48, 165)
HSLhsl(286, 55%, 42%)
HSVhsv(286, 71%, 65%)
CMYKcmyk(16.4%, 70.9%, 0%, 35.3%)
CIE-LABlab(38.26, 54.99, -45.51)
CIE-LCHlch(38.26, 71.38, 320.39°)
OKLaboklab(49.19% 0.1386 -0.1278)
OKLCHoklch(49.19% 0.189 317.3)
XYZxyz(18.3287, 10.2346, 36.6000)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30A5 #4BA530
analogous
#5030A5 #8A30A5 #A53086
triadic
#8A30A5 #A58A30 #30A58A
tetradic
#8A30A5 #A55030 #4BA530 #3086A5
square
#8A30A5 #A55030 #4BA530 #3086A5
split-complementary
#8A30A5 #86A530 #30A550
monochromatic
#3B1446 #622276 #8A30A5 #AC48CA #C278D8

Accessibility & contrast

On white

6.89
#8A30A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A30A5
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30A5#FFFFFF#000000##FFFFFF
##8A30A51.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#335DA2
Tritanopia (blue-blind)
#894767
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a30a5;
/* rgb */ color: rgb(138, 48, 165);
/* oklch */ color: oklch(49.2% 0.189 317.3);
Tailwind
colors: {
  custom: {
    50: '#b070c0',
    500: '#8a30a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a30a5;
$custom-light: #b070c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30a5",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 286.154,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.18852,
    "h": 317.3
  },
  "luminance": 0.10234
}

Semantic roles & 50–950 ramp

primary
#8A30A5
secondary
#83C071
accent
#DE4A6C
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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