#8A397D#8A397D

#8A397D is a mid, vivid purple. Relative luminance 0.098; OKLCH L 47.9% C 0.139 H 334.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8A397D
RGBrgb(138, 57, 125)
HSLhsl(310, 42%, 38%)
HSVhsv(310, 59%, 54%)
CMYKcmyk(0%, 58.7%, 9.4%, 45.9%)
CIE-LABlab(37.50, 43.42, -22.32)
CIE-LCHlch(37.50, 48.82, 332.79°)
OKLaboklab(47.92% 0.1255 -0.0607)
OKLCHoklch(47.92% 0.139 334.2)
XYZxyz(15.6461, 9.8113, 20.4678)
Luminance0.0981 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A397D #398A46
analogous
#6E398A #8A397D #8A3954
triadic
#8A397D #7D8A39 #397D8A
tetradic
#8A397D #8A6E39 #398A46 #39548A
square
#8A397D #8A6E39 #398A46 #39548A
split-complementary
#8A397D #548A39 #398A6E
monochromatic
#33152F #5F2756 #8A397D #B54BA4 #C777BA

Accessibility & contrast

On white

7.09
#8A397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A397D
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A397D#FFFFFF#000000##FFFFFF
##8A397D1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38517F
Deuteranopia (green-blind)
#515D7B
Tritanopia (blue-blind)
#903E55
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a397d;
/* rgb */ color: rgb(138, 57, 125);
/* oklch */ color: oklch(47.9% 0.139 334.2);
Tailwind
colors: {
  custom: {
    50: '#ae74a3',
    500: '#8a397d',
    950: '#000000',
  },
}
SCSS
$custom: #8a397d;
$custom-light: #ae74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a397d",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 309.63,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47923,
    "c": 0.13938,
    "h": 334.2
  },
  "luminance": 0.0981
}

Semantic roles & 50–950 ramp

primary
#8A397D
secondary
#6FB079
accent
#D16A56
background
#FBF7FA
surface
#F6EDF3
border
#D0C8CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A397D

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

Preview Lab → · Contrast checker → · Palette generator →

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