#8A399F#8A399F

#8A399F is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.8% C 0.171 H 318.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8A399F
RGBrgb(138, 57, 159)
HSLhsl(288, 47%, 42%)
HSVhsv(288, 64%, 62%)
CMYKcmyk(13.2%, 64.2%, 0%, 37.6%)
CIE-LABlab(39.30, 49.84, -40.25)
CIE-LCHlch(39.30, 64.06, 321.08°)
OKLaboklab(49.82% 0.1285 -0.1125)
OKLCHoklch(49.82% 0.171 318.8)
XYZxyz(18.2015, 10.8335, 33.9265)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A399F #4E9F39
analogous
#57399F #8A399F #9F3981
triadic
#8A399F #9F8A39 #399F8A
tetradic
#8A399F #9F5739 #4E9F39 #39819F
square
#8A399F #9F5739 #4E9F39 #39819F
split-complementary
#8A399F #819F39 #399F57
monochromatic
#3C1945 #632972 #8A399F #AB54C2 #C181D2

Accessibility & contrast

On white

6.63
#8A399F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A399F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A399F
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A399F#FFFFFF#000000##FFFFFF
##8A399F1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B57A2
Deuteranopia (green-blind)
#3F5F9C
Tritanopia (blue-blind)
#8A4A67
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a399f;
/* rgb */ color: rgb(138, 57, 159);
/* oklch */ color: oklch(49.8% 0.171 318.8);
Tailwind
colors: {
  custom: {
    50: '#af75bc',
    500: '#8a399f',
    950: '#000000',
  },
}
SCSS
$custom: #8a399f;
$custom-light: #af75bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a399f",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 287.647,
    "s": 47.222,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49817,
    "c": 0.17077,
    "h": 318.8
  },
  "luminance": 0.10833
}

Semantic roles & 50–950 ramp

primary
#8A399F
secondary
#86BB78
accent
#D7516D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A399F

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

Preview Lab → · Contrast checker → · Palette generator →

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