#8A398B#8A398B

#8A398B is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.7% C 0.152 H 327.1°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8A398B
RGBrgb(138, 57, 139)
HSLhsl(299, 42%, 38%)
HSVhsv(299, 59%, 55%)
CMYKcmyk(0.7%, 59%, 0%, 45.5%)
CIE-LABlab(38.19, 45.93, -29.87)
CIE-LCHlch(38.19, 54.79, 326.96°)
OKLaboklab(48.65% 0.1274 -0.0824)
OKLCHoklch(48.65% 0.152 327.1)
XYZxyz(16.6043, 10.1946, 25.5143)
Luminance0.1019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A398B #3A8B39
analogous
#61398B #8A398B #8B3963
triadic
#8A398B #8B8A39 #398B8A
tetradic
#8A398B #8B6139 #3A8B39 #39638B
square
#8A398B #8B6139 #3A8B39 #39638B
split-complementary
#8A398B #638B39 #398B61
monochromatic
#341534 #5F2760 #8A398B #B44CB5 #C677C7

Accessibility & contrast

On white

6.91
#8A398B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A398B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A398B
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A398B#FFFFFF#000000##FFFFFF
##8A398B1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538E
Deuteranopia (green-blind)
#4B5E89
Tritanopia (blue-blind)
#8E435C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a398b;
/* rgb */ color: rgb(138, 57, 139);
/* oklch */ color: oklch(48.7% 0.152 327.1);
Tailwind
colors: {
  custom: {
    50: '#af74ad',
    500: '#8a398b',
    950: '#000000',
  },
}
SCSS
$custom: #8a398b;
$custom-light: #af74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a398b",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 299.268,
    "s": 41.837,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48651,
    "c": 0.15173,
    "h": 327.1
  },
  "luminance": 0.10194
}

Semantic roles & 50–950 ramp

primary
#8A398B
secondary
#70B06F
accent
#D25658
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A398B

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

Preview Lab → · Contrast checker → · Palette generator →

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