#8A309B#8A309B

#8A309B is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.5% C 0.179 H 320.9°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8A309B
RGBrgb(138, 48, 155)
HSLhsl(290, 53%, 40%)
HSVhsv(290, 69%, 61%)
CMYKcmyk(11%, 69%, 0%, 39.2%)
CIE-LABlab(37.63, 53.02, -40.49)
CIE-LCHlch(37.63, 66.71, 322.63°)
OKLaboklab(48.54% 0.1391 -0.1131)
OKLCHoklch(48.54% 0.179 320.9)
XYZxyz(17.4539, 9.8846, 31.9926)
Luminance0.0988 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A309B #419B30
analogous
#54309B #8A309B #9B3077
triadic
#8A309B #9B8A30 #309B8A
tetradic
#8A309B #9B5430 #419B30 #30779B
square
#8A309B #9B5430 #419B30 #30779B
split-complementary
#8A309B #779B30 #309B54
monochromatic
#37133E #60226C #8A309B #B043C5 #C472D3

Accessibility & contrast

On white

7.05
#8A309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A309B
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A309B#FFFFFF#000000##FFFFFF
##8A309B1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09529E
Deuteranopia (green-blind)
#3B5C98
Tritanopia (blue-blind)
#8B4362
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a309b;
/* rgb */ color: rgb(138, 48, 155);
/* oklch */ color: oklch(48.5% 0.179 320.9);
Tailwind
colors: {
  custom: {
    50: '#af70b9',
    500: '#8a309b',
    950: '#000000',
  },
}
SCSS
$custom: #8a309b;
$custom-light: #af70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a309b",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 290.467,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4854,
    "c": 0.1793,
    "h": 320.9
  },
  "luminance": 0.09884
}

Semantic roles & 50–950 ramp

primary
#8A309B
secondary
#78BB6C
accent
#DC4C63
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A309B

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

Preview Lab → · Contrast checker → · Palette generator →

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