#8A30A4#8A30A4

#8A30A4 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.1% C 0.188 H 317.6°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8A30A4
RGBrgb(138, 48, 164)
HSLhsl(287, 55%, 42%)
HSVhsv(287, 71%, 64%)
CMYKcmyk(15.9%, 70.7%, 0%, 35.7%)
CIE-LABlab(38.20, 54.79, -45.01)
CIE-LCHlch(38.20, 70.91, 320.60°)
OKLaboklab(49.12% 0.1386 -0.1264)
OKLCHoklch(49.12% 0.188 317.6)
XYZxyz(18.2381, 10.1983, 36.1225)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30A4 #4AA430
analogous
#5030A4 #8A30A4 #A43084
triadic
#8A30A4 #A48A30 #30A48A
tetradic
#8A30A4 #A45030 #4AA430 #3084A4
square
#8A30A4 #A45030 #4AA430 #3084A4
split-complementary
#8A30A4 #84A430 #30A450
monochromatic
#3A1445 #622275 #8A30A4 #AC48C9 #C277D7

Accessibility & contrast

On white

6.91
#8A30A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A30A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30A4
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30A4#FFFFFF#000000##FFFFFF
##8A30A41.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#345DA1
Tritanopia (blue-blind)
#894767
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a30a4;
/* rgb */ color: rgb(138, 48, 164);
/* oklch */ color: oklch(49.1% 0.188 317.6);
Tailwind
colors: {
  custom: {
    50: '#b070c0',
    500: '#8a30a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a30a4;
$custom-light: #b070c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30a4",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 286.552,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49123,
    "c": 0.18758,
    "h": 317.6
  },
  "luminance": 0.10198
}

Semantic roles & 50–950 ramp

primary
#8A30A4
secondary
#82BF70
accent
#DE4A6B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A30A4

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

Preview Lab → · Contrast checker → · Palette generator →

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