#8A30B6#8A30B6

#8A30B6 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.4% C 0.204 H 311.9°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8A30B6
RGBrgb(138, 48, 182)
HSLhsl(280, 58%, 45%)
HSVhsv(280, 74%, 71%)
CMYKcmyk(24.2%, 73.6%, 0%, 28.6%)
CIE-LABlab(39.40, 58.49, -53.78)
CIE-LCHlch(39.40, 79.46, 317.40°)
OKLaboklab(50.37% 0.1366 -0.1521)
OKLCHoklch(50.37% 0.204 311.9)
XYZxyz(19.9801, 10.8951, 45.2974)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30B6 #5CB630
analogous
#4730B6 #8A30B6 #B6309F
triadic
#8A30B6 #B68A30 #30B68A
tetradic
#8A30B6 #B64730 #5CB630 #309FB6
square
#8A30B6 #B64730 #5CB630 #309FB6
split-complementary
#8A30B6 #9FB630 #30B647
monochromatic
#411655 #652386 #8A30B6 #A752D1 #C082DE

Accessibility & contrast

On white

6.61
#8A30B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A30B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30B6
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30B6#FFFFFF#000000##FFFFFF
##8A30B61.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BA
Deuteranopia (green-blind)
#1D5FB3
Tritanopia (blue-blind)
#854E71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a30b6;
/* rgb */ color: rgb(138, 48, 182);
/* oklch */ color: oklch(50.4% 0.204 311.9);
Tailwind
colors: {
  custom: {
    50: '#b171cd',
    500: '#8a30b6',
    950: '#000000',
  },
}
SCSS
$custom: #8a30b6;
$custom-light: #b171cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30b6",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 280.299,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50366,
    "c": 0.20443,
    "h": 311.9
  },
  "luminance": 0.10895
}

Semantic roles & 50–950 ramp

primary
#8A30B6
secondary
#94C77B
accent
#E14679
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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