#8A397E#8A397E

#8A397E is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.0% C 0.140 H 333.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8A397E
RGBrgb(138, 57, 126)
HSLhsl(309, 42%, 38%)
HSVhsv(309, 59%, 54%)
CMYKcmyk(0%, 58.7%, 8.7%, 45.9%)
CIE-LABlab(37.55, 43.59, -22.87)
CIE-LCHlch(37.55, 49.23, 332.31°)
OKLaboklab(47.97% 0.1256 -0.0623)
OKLCHoklch(47.97% 0.14 333.6)
XYZxyz(15.7103, 9.8370, 20.8059)
Luminance0.0984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A397E #398A45
analogous
#6D398A #8A397E #8A3955
triadic
#8A397E #7E8A39 #397E8A
tetradic
#8A397E #8A6D39 #398A45 #39558A
square
#8A397E #8A6D39 #398A45 #39558A
split-complementary
#8A397E #558A39 #398A6D
monochromatic
#33152F #5F2756 #8A397E #B54BA5 #C777BB

Accessibility & contrast

On white

7.08
#8A397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A397E
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A397E#FFFFFF#000000##FFFFFF
##8A397E1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385180
Deuteranopia (green-blind)
#505D7C
Tritanopia (blue-blind)
#903F56
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a397e;
/* rgb */ color: rgb(138, 57, 126);
/* oklch */ color: oklch(48.0% 0.140 333.6);
Tailwind
colors: {
  custom: {
    50: '#ae74a3',
    500: '#8a397e',
    950: '#000000',
  },
}
SCSS
$custom: #8a397e;
$custom-light: #ae74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a397e",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 308.889,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47972,
    "c": 0.14022,
    "h": 333.6
  },
  "luminance": 0.09836
}

Semantic roles & 50–950 ramp

primary
#8A397E
secondary
#6FB079
accent
#D16956
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A397E

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

Preview Lab → · Contrast checker → · Palette generator →

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