#8A309C#8A309C

#8A309C is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.180 H 320.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8A309C
RGBrgb(138, 48, 156)
HSLhsl(290, 53%, 40%)
HSVhsv(290, 69%, 61%)
CMYKcmyk(11.5%, 69.2%, 0%, 38.8%)
CIE-LABlab(37.70, 53.21, -41.00)
CIE-LCHlch(37.70, 67.17, 322.39°)
OKLaboklab(48.6% 0.1391 -0.1146)
OKLCHoklch(48.6% 0.18 320.5)
XYZxyz(17.5382, 9.9184, 32.4367)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A309C #429C30
analogous
#54309C #8A309C #9C3078
triadic
#8A309C #9C8A30 #309C8A
tetradic
#8A309C #9C5430 #429C30 #30789C
square
#8A309C #9C5430 #429C30 #30789C
split-complementary
#8A309C #789C30 #309C54
monochromatic
#37133E #61226D #8A309C #B044C5 #C473D4

Accessibility & contrast

On white

7.04
#8A309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A309C
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A309C#FFFFFF#000000##FFFFFF
##8A309C1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06529F
Deuteranopia (green-blind)
#3A5C99
Tritanopia (blue-blind)
#8B4362
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a309c;
/* rgb */ color: rgb(138, 48, 156);
/* oklch */ color: oklch(48.6% 0.180 320.5);
Tailwind
colors: {
  custom: {
    50: '#af70ba',
    500: '#8a309c',
    950: '#000000',
  },
}
SCSS
$custom: #8a309c;
$custom-light: #af70ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a309c",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 290,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.48604,
    "c": 0.18022,
    "h": 320.5
  },
  "luminance": 0.09917
}

Semantic roles & 50–950 ramp

primary
#8A309C
secondary
#79BC6C
accent
#DC4B64
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A309C

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

Preview Lab → · Contrast checker → · Palette generator →

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