#8A398D#8A398D

#8A398D is a mid, vivid purple. Relative luminance 0.103; OKLCH L 48.8% C 0.154 H 326.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8A398D
RGBrgb(138, 57, 141)
HSLhsl(298, 42%, 39%)
HSVhsv(298, 60%, 55%)
CMYKcmyk(2.1%, 59.6%, 0%, 44.7%)
CIE-LABlab(38.29, 46.31, -30.93)
CIE-LCHlch(38.29, 55.69, 326.26°)
OKLaboklab(48.76% 0.1276 -0.0854)
OKLCHoklch(48.76% 0.154 326.2)
XYZxyz(16.7517, 10.2536, 26.2909)
Luminance0.1025 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A398D #3C8D39
analogous
#60398D #8A398D #8D3966
triadic
#8A398D #8D8A39 #398D8A
tetradic
#8A398D #8D6039 #3C8D39 #39668D
square
#8A398D #8D6039 #3C8D39 #39668D
split-complementary
#8A398D #668D39 #398D60
monochromatic
#351636 #5F2761 #8A398D #B34CB7 #C678C8

Accessibility & contrast

On white

6.88
#8A398D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A398D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A398D
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A398D#FFFFFF#000000##FFFFFF
##8A398D1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5490
Deuteranopia (green-blind)
#4A5E8B
Tritanopia (blue-blind)
#8D445D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a398d;
/* rgb */ color: rgb(138, 57, 141);
/* oklch */ color: oklch(48.8% 0.154 326.2);
Tailwind
colors: {
  custom: {
    50: '#af74ae',
    500: '#8a398d',
    950: '#000000',
  },
}
SCSS
$custom: #8a398d;
$custom-light: #af74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a398d",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 297.857,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48761,
    "c": 0.15358,
    "h": 326.2
  },
  "luminance": 0.10253
}

Semantic roles & 50–950 ramp

primary
#8A398D
secondary
#73B270
accent
#D2565A
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A398D

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

Preview Lab → · Contrast checker → · Palette generator →

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