#8A308A#8A308A

#8A308A is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.5% C 0.164 H 327.8°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#8A308A
RGBrgb(138, 48, 138)
HSLhsl(300, 48%, 36%)
HSVhsv(300, 65%, 54%)
CMYKcmyk(0%, 65.2%, 0%, 45.9%)
CIE-LABlab(36.66, 49.83, -31.68)
CIE-LCHlch(36.66, 59.05, 327.56°)
OKLaboklab(47.52% 0.1389 -0.0875)
OKLCHoklch(47.52% 0.164 327.8)
XYZxyz(16.1254, 9.3532, 24.9958)
Luminance0.0935 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A308A #308A30
analogous
#5D308A #8A308A #8A305D
triadic
#8A308A #8A8A30 #308A8A
tetradic
#8A308A #8A5D30 #308A30 #305D8A
square
#8A308A #8A5D30 #308A30 #305D8A
split-complementary
#8A308A #5D8A30 #308A5D
monochromatic
#2F102F #5D205D #8A308A #B740B7 #CB69CB

Accessibility & contrast

On white

7.32
#8A308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A308A
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A308A#FFFFFF#000000##FFFFFF
##8A308A1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8D
Deuteranopia (green-blind)
#465A88
Tritanopia (blue-blind)
#8E3C59
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a308a;
/* rgb */ color: rgb(138, 48, 138);
/* oklch */ color: oklch(47.5% 0.164 327.8);
Tailwind
colors: {
  custom: {
    50: '#af6fac',
    500: '#8a308a',
    950: '#000000',
  },
}
SCSS
$custom: #8a308a;
$custom-light: #af6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a308a",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47519,
    "c": 0.16413,
    "h": 327.8
  },
  "luminance": 0.09352
}

Semantic roles & 50–950 ramp

primary
#8A308A
secondary
#64B264
accent
#D85050
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A308A

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

Preview Lab → · Contrast checker → · Palette generator →

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