#8A397F#8A397F

#8A397F is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.0% C 0.141 H 333.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8A397F
RGBrgb(138, 57, 127)
HSLhsl(308, 42%, 38%)
HSVhsv(308, 59%, 54%)
CMYKcmyk(0%, 58.7%, 8%, 45.9%)
CIE-LABlab(37.60, 43.76, -23.42)
CIE-LCHlch(37.60, 49.63, 331.85°)
OKLaboklab(48.02% 0.1258 -0.0638)
OKLCHoklch(48.02% 0.141 333.1)
XYZxyz(15.7751, 9.8630, 21.1474)
Luminance0.0986 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A397F #398A44
analogous
#6C398A #8A397F #8A3956
triadic
#8A397F #7F8A39 #397F8A
tetradic
#8A397F #8A6C39 #398A44 #39568A
square
#8A397F #8A6C39 #398A44 #39568A
split-complementary
#8A397F #568A39 #398A6C
monochromatic
#33152F #5F2757 #8A397F #B54BA6 #C777BC

Accessibility & contrast

On white

7.06
#8A397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A397F
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A397F#FFFFFF#000000##FFFFFF
##8A397F1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a397f;
/* rgb */ color: rgb(138, 57, 127);
/* oklch */ color: oklch(48.0% 0.141 333.1);
Tailwind
colors: {
  custom: {
    50: '#ae74a4',
    500: '#8a397f',
    950: '#000000',
  },
}
SCSS
$custom: #8a397f;
$custom-light: #ae74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a397f",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 308.148,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.48022,
    "c": 0.14108,
    "h": 333.1
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#8A397F
secondary
#6FB078
accent
#D16756
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A397F

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

Preview Lab → · Contrast checker → · Palette generator →

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