#8A398A#8A398A

#8A398A is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.6% C 0.151 H 327.6°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#8A398A
RGBrgb(138, 57, 138)
HSLhsl(300, 42%, 38%)
HSVhsv(300, 59%, 54%)
CMYKcmyk(0%, 58.7%, 0%, 45.9%)
CIE-LABlab(38.14, 45.75, -29.34)
CIE-LCHlch(38.14, 54.35, 327.33°)
OKLaboklab(48.6% 0.1273 -0.0808)
OKLCHoklch(48.6% 0.151 327.6)
XYZxyz(16.5316, 10.1655, 25.1312)
Luminance0.1017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A398A #398A39
analogous
#61398A #8A398A #8A3961
triadic
#8A398A #8A8A39 #398A8A
tetradic
#8A398A #8A6139 #398A39 #39618A
square
#8A398A #8A6139 #398A39 #39618A
split-complementary
#8A398A #618A39 #398A61
monochromatic
#331533 #5F275F #8A398A #B54BB5 #C777C7

Accessibility & contrast

On white

6.92
#8A398A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A398A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A398A
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A398A#FFFFFF#000000##FFFFFF
##8A398A1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538D
Deuteranopia (green-blind)
#4B5E88
Tritanopia (blue-blind)
#8E435C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a398a;
/* rgb */ color: rgb(138, 57, 138);
/* oklch */ color: oklch(48.6% 0.151 327.6);
Tailwind
colors: {
  custom: {
    50: '#af74ac',
    500: '#8a398a',
    950: '#000000',
  },
}
SCSS
$custom: #8a398a;
$custom-light: #af74ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a398a",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.48597,
    "c": 0.15082,
    "h": 327.6
  },
  "luminance": 0.10165
}

Semantic roles & 50–950 ramp

primary
#8A398A
secondary
#6FB06F
accent
#D15656
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A398A

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

Preview Lab → · Contrast checker → · Palette generator →

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