#8A309D#8A309D

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

Color values

HEX#8A309D
RGBrgb(138, 48, 157)
HSLhsl(290, 53%, 40%)
HSVhsv(290, 69%, 62%)
CMYKcmyk(12.1%, 69.4%, 0%, 38.4%)
CIE-LABlab(37.76, 53.40, -41.50)
CIE-LCHlch(37.76, 67.63, 322.15°)
OKLaboklab(48.67% 0.139 -0.1161)
OKLCHoklch(48.67% 0.181 320.1)
XYZxyz(17.6232, 9.9524, 32.8845)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A309D #439D30
analogous
#53309D #8A309D #9D307A
triadic
#8A309D #9D8A30 #309D8A
tetradic
#8A309D #9D5330 #439D30 #307A9D
square
#8A309D #9D5330 #439D30 #307A9D
split-complementary
#8A309D #7A9D30 #309D53
monochromatic
#38133F #61226E #8A309D #AF44C6 #C373D4

Accessibility & contrast

On white

7.02
#8A309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A309D
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A309D#FFFFFF#000000##FFFFFF
##8A309D1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0253A0
Deuteranopia (green-blind)
#3A5C9A
Tritanopia (blue-blind)
#8B4463
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a309d;
/* rgb */ color: rgb(138, 48, 157);
/* oklch */ color: oklch(48.7% 0.181 320.1);
Tailwind
colors: {
  custom: {
    50: '#af70ba',
    500: '#8a309d',
    950: '#000000',
  },
}
SCSS
$custom: #8a309d;
$custom-light: #af70ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a309d",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 289.541,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48667,
    "c": 0.18113,
    "h": 320.1
  },
  "luminance": 0.09951
}

Semantic roles & 50–950 ramp

primary
#8A309D
secondary
#7BBC6D
accent
#DD4B65
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A309D

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

Preview Lab → · Contrast checker → · Palette generator →

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