#8A30A8#8A30A8

#8A30A8 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.191 H 316.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8A30A8
RGBrgb(138, 48, 168)
HSLhsl(285, 56%, 42%)
HSVhsv(285, 71%, 66%)
CMYKcmyk(17.9%, 71.4%, 0%, 34.1%)
CIE-LABlab(38.45, 55.59, -46.99)
CIE-LCHlch(38.45, 72.79, 319.79°)
OKLaboklab(49.39% 0.1383 -0.1322)
OKLCHoklch(49.39% 0.191 316.3)
XYZxyz(18.6050, 10.3451, 38.0550)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30A8 #4EA830
analogous
#4E30A8 #8A30A8 #A8308A
triadic
#8A30A8 #A88A30 #30A88A
tetradic
#8A30A8 #A84E30 #4EA830 #308AA8
square
#8A30A8 #A84E30 #4EA830 #308AA8
split-complementary
#8A30A8 #8AA830 #30A84E
monochromatic
#3C1549 #632278 #8A30A8 #AB4ACB #C17AD9

Accessibility & contrast

On white

6.84
#8A30A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A30A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30A8
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30A8#FFFFFF#000000##FFFFFF
##8A30A81.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#305DA5
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a30a8;
/* rgb */ color: rgb(138, 48, 168);
/* oklch */ color: oklch(49.4% 0.191 316.3);
Tailwind
colors: {
  custom: {
    50: '#b071c2',
    500: '#8a30a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a30a8;
$custom-light: #b071c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30a8",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 168
  },
  "hsl": {
    "h": 285,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4939,
    "c": 0.1913,
    "h": 316.3
  },
  "luminance": 0.10344
}

Semantic roles & 50–950 ramp

primary
#8A30A8
secondary
#86C173
accent
#DF496E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A30A8

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

Preview Lab → · Contrast checker → · Palette generator →

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