#8A30A2#8A30A2

#8A30A2 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.0% C 0.186 H 318.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#8A30A2
RGBrgb(138, 48, 162)
HSLhsl(287, 54%, 41%)
HSVhsv(287, 70%, 64%)
CMYKcmyk(14.8%, 70.4%, 0%, 36.5%)
CIE-LABlab(38.07, 54.39, -44.01)
CIE-LCHlch(38.07, 69.97, 321.02°)
OKLaboklab(48.99% 0.1388 -0.1234)
OKLCHoklch(48.99% 0.186 318.3)
XYZxyz(18.0589, 10.1266, 35.1788)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30A2 #48A230
analogous
#5130A2 #8A30A2 #A23081
triadic
#8A30A2 #A28A30 #30A28A
tetradic
#8A30A2 #A25130 #48A230 #3081A2
square
#8A30A2 #A25130 #48A230 #3081A2
split-complementary
#8A30A2 #81A230 #30A251
monochromatic
#3A1444 #622273 #8A30A2 #AD47C8 #C276D6

Accessibility & contrast

On white

6.94
#8A30A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A30A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30A2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30A2#FFFFFF#000000##FFFFFF
##8A30A21.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#365C9F
Tritanopia (blue-blind)
#8A4665
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a30a2;
/* rgb */ color: rgb(138, 48, 162);
/* oklch */ color: oklch(49.0% 0.186 318.3);
Tailwind
colors: {
  custom: {
    50: '#b070be',
    500: '#8a30a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a30a2;
$custom-light: #b070be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30a2",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 287.368,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48991,
    "c": 0.18573,
    "h": 318.3
  },
  "luminance": 0.10126
}

Semantic roles & 50–950 ramp

primary
#8A30A2
secondary
#80BE6F
accent
#DE4A69
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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