#8A30B3#8A30B3

#8A30B3 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.2% C 0.202 H 312.8°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8A30B3
RGBrgb(138, 48, 179)
HSLhsl(281, 58%, 45%)
HSVhsv(281, 73%, 70%)
CMYKcmyk(22.9%, 73.2%, 0%, 29.8%)
CIE-LABlab(39.19, 57.86, -52.34)
CIE-LCHlch(39.19, 78.02, 317.87°)
OKLaboklab(50.15% 0.137 -0.1479)
OKLCHoklch(50.15% 0.202 312.8)
XYZxyz(19.6734, 10.7724, 43.6820)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30B3 #59B330
analogous
#4830B3 #8A30B3 #B3309B
triadic
#8A30B3 #B38A30 #30B38A
tetradic
#8A30B3 #B34830 #59B330 #309BB3
square
#8A30B3 #B34830 #59B330 #309BB3
split-complementary
#8A30B3 #9BB330 #30B348
monochromatic
#401652 #652383 #8A30B3 #A850D0 #C080DD

Accessibility & contrast

On white

6.66
#8A30B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A30B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30B3
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30B3#FFFFFF#000000##FFFFFF
##8A30B31.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#225EB0
Tritanopia (blue-blind)
#854D6F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a30b3;
/* rgb */ color: rgb(138, 48, 179);
/* oklch */ color: oklch(50.2% 0.202 312.8);
Tailwind
colors: {
  custom: {
    50: '#b071ca',
    500: '#8a30b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a30b3;
$custom-light: #b071ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30b3",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 281.221,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50152,
    "c": 0.20161,
    "h": 312.8
  },
  "luminance": 0.10772
}

Semantic roles & 50–950 ramp

primary
#8A30B3
secondary
#91C679
accent
#E14777
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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