#8A309E#8A309E

#8A309E is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.7% C 0.182 H 319.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8A309E
RGBrgb(138, 48, 158)
HSLhsl(289, 53%, 40%)
HSVhsv(289, 70%, 62%)
CMYKcmyk(12.7%, 69.6%, 0%, 38%)
CIE-LABlab(37.82, 53.60, -42.01)
CIE-LCHlch(37.82, 68.10, 321.91°)
OKLaboklab(48.73% 0.139 -0.1176)
OKLCHoklch(48.73% 0.182 319.8)
XYZxyz(17.7090, 9.9867, 33.3359)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A309E #449E30
analogous
#53309E #8A309E #9E307B
triadic
#8A309E #9E8A30 #309E8A
tetradic
#8A309E #9E5330 #449E30 #307B9E
square
#8A309E #9E5330 #449E30 #307B9E
split-complementary
#8A309E #7B9E30 #309E53
monochromatic
#381340 #61226F #8A309E #AF45C6 #C374D5

Accessibility & contrast

On white

7.01
#8A309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8A309E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A309E
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A309E#FFFFFF#000000##FFFFFF
##8A309E1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A1
Deuteranopia (green-blind)
#395C9B
Tritanopia (blue-blind)
#8A4463
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a309e;
/* rgb */ color: rgb(138, 48, 158);
/* oklch */ color: oklch(48.7% 0.182 319.8);
Tailwind
colors: {
  custom: {
    50: '#af70bb',
    500: '#8a309e',
    950: '#000000',
  },
}
SCSS
$custom: #8a309e;
$custom-light: #af70bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a309e",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 289.091,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48731,
    "c": 0.18205,
    "h": 319.8
  },
  "luminance": 0.09986
}

Semantic roles & 50–950 ramp

primary
#8A309E
secondary
#7CBD6D
accent
#DD4B66
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A309E

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

Preview Lab → · Contrast checker → · Palette generator →

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