#8A309F#8A309F

#8A309F is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.8% C 0.183 H 319.4°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#8A309F
RGBrgb(138, 48, 159)
HSLhsl(289, 54%, 41%)
HSVhsv(289, 70%, 62%)
CMYKcmyk(13.2%, 69.8%, 0%, 37.6%)
CIE-LABlab(37.88, 53.80, -42.51)
CIE-LCHlch(37.88, 68.57, 321.68°)
OKLaboklab(48.8% 0.1389 -0.119)
OKLCHoklch(48.8% 0.183 319.4)
XYZxyz(17.7954, 10.0212, 33.7911)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A309F #459F30
analogous
#53309F #8A309F #9F307C
triadic
#8A309F #9F8A30 #309F8A
tetradic
#8A309F #9F5330 #459F30 #307C9F
square
#8A309F #9F5330 #459F30 #307C9F
split-complementary
#8A309F #7C9F30 #309F53
monochromatic
#381441 #612270 #8A309F #AE45C7 #C374D5

Accessibility & contrast

On white

6.99
#8A309F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A309F
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A309F#FFFFFF#000000##FFFFFF
##8A309F1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#385C9C
Tritanopia (blue-blind)
#8A4564
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a309f;
/* rgb */ color: rgb(138, 48, 159);
/* oklch */ color: oklch(48.8% 0.183 319.4);
Tailwind
colors: {
  custom: {
    50: '#af70bc',
    500: '#8a309f',
    950: '#000000',
  },
}
SCSS
$custom: #8a309f;
$custom-light: #af70bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a309f",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 288.649,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48796,
    "c": 0.18297,
    "h": 319.4
  },
  "luminance": 0.1002
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A309F

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

Preview Lab → · Contrast checker → · Palette generator →

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