#8A399D#8A399D

#8A399D is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.7% C 0.169 H 319.5°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8A399D
RGBrgb(138, 57, 157)
HSLhsl(289, 47%, 42%)
HSVhsv(289, 64%, 62%)
CMYKcmyk(12.1%, 63.7%, 0%, 38.4%)
CIE-LABlab(39.18, 49.44, -39.23)
CIE-LCHlch(39.18, 63.11, 321.57°)
OKLaboklab(49.69% 0.1285 -0.1095)
OKLCHoklch(49.69% 0.169 319.5)
XYZxyz(18.0294, 10.7647, 33.0198)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A399D #4C9D39
analogous
#58399D #8A399D #9D397E
triadic
#8A399D #9D8A39 #399D8A
tetradic
#8A399D #9D5839 #4C9D39 #397E9D
square
#8A399D #9D5839 #4C9D39 #397E9D
split-complementary
#8A399D #7E9D39 #399D58
monochromatic
#3B1843 #632970 #8A399D #AC53C0 #C180D1

Accessibility & contrast

On white

6.66
#8A399D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A399D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A399D
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A399D#FFFFFF#000000##FFFFFF
##8A399D1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E57A0
Deuteranopia (green-blind)
#405F9A
Tritanopia (blue-blind)
#8A4A66
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a399d;
/* rgb */ color: rgb(138, 57, 157);
/* oklch */ color: oklch(49.7% 0.169 319.5);
Tailwind
colors: {
  custom: {
    50: '#af75ba',
    500: '#8a399d',
    950: '#000000',
  },
}
SCSS
$custom: #8a399d;
$custom-light: #af75ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a399d",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 288.6,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49694,
    "c": 0.16882,
    "h": 319.5
  },
  "luminance": 0.10764
}

Semantic roles & 50–950 ramp

primary
#8A399D
secondary
#84BA78
accent
#D6516B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A399D

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

Preview Lab → · Contrast checker → · Palette generator →

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