#8A30B5#8A30B5

#8A30B5 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.3% C 0.203 H 312.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8A30B5
RGBrgb(138, 48, 181)
HSLhsl(281, 58%, 45%)
HSVhsv(281, 73%, 71%)
CMYKcmyk(23.8%, 73.5%, 0%, 29%)
CIE-LABlab(39.33, 58.28, -53.30)
CIE-LCHlch(39.33, 78.98, 317.55°)
OKLaboklab(50.29% 0.1368 -0.1507)
OKLCHoklch(50.29% 0.203 312.2)
XYZxyz(19.8771, 10.8539, 44.7550)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30B5 #5BB530
analogous
#4830B5 #8A30B5 #B5309D
triadic
#8A30B5 #B58A30 #30B58A
tetradic
#8A30B5 #B54830 #5BB530 #309DB5
square
#8A30B5 #B54830 #5BB530 #309DB5
split-complementary
#8A30B5 #9DB530 #30B548
monochromatic
#401654 #652385 #8A30B5 #A851D1 #C082DE

Accessibility & contrast

On white

6.62
#8A30B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A30B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30B5
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30B5#FFFFFF#000000##FFFFFF
##8A30B51.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B9
Deuteranopia (green-blind)
#1F5EB2
Tritanopia (blue-blind)
#854E70
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a30b5;
/* rgb */ color: rgb(138, 48, 181);
/* oklch */ color: oklch(50.3% 0.203 312.2);
Tailwind
colors: {
  custom: {
    50: '#b071cc',
    500: '#8a30b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a30b5;
$custom-light: #b071cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30b5",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 280.602,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50294,
    "c": 0.20349,
    "h": 312.2
  },
  "luminance": 0.10853
}

Semantic roles & 50–950 ramp

primary
#8A30B5
secondary
#93C77A
accent
#E14679
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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