#8A30B7#8A30B7

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

Color values

HEX#8A30B7
RGBrgb(138, 48, 183)
HSLhsl(280, 58%, 45%)
HSVhsv(280, 74%, 72%)
CMYKcmyk(24.6%, 73.8%, 0%, 28.2%)
CIE-LABlab(39.47, 58.70, -54.26)
CIE-LCHlch(39.47, 79.93, 317.25°)
OKLaboklab(50.44% 0.1365 -0.1535)
OKLCHoklch(50.44% 0.205 311.6)
XYZxyz(20.0838, 10.9366, 45.8436)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30B7 #5DB730
analogous
#4630B7 #8A30B7 #B730A0
triadic
#8A30B7 #B78A30 #30B78A
tetradic
#8A30B7 #B74630 #5DB730 #30A0B7
square
#8A30B7 #B74630 #5DB730 #30A0B7
split-complementary
#8A30B7 #A0B730 #30B746
monochromatic
#411756 #652387 #8A30B7 #A752D2 #C083DE

Accessibility & contrast

On white

6.59
#8A30B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A30B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30B7
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30B7#FFFFFF#000000##FFFFFF
##8A30B71.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#1B5FB4
Tritanopia (blue-blind)
#844F71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a30b7;
/* rgb */ color: rgb(138, 48, 183);
/* oklch */ color: oklch(50.4% 0.205 311.6);
Tailwind
colors: {
  custom: {
    50: '#b171cd',
    500: '#8a30b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a30b7;
$custom-light: #b171cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30b7",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 280,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50438,
    "c": 0.20538,
    "h": 311.6
  },
  "luminance": 0.10936
}

Semantic roles & 50–950 ramp

primary
#8A30B7
secondary
#95C87B
accent
#E2467A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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