#8A397B#8A397B

#8A397B is a mid, vivid pink. Relative luminance 0.098; OKLCH L 47.8% C 0.138 H 335.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#8A397B
RGBrgb(138, 57, 123)
HSLhsl(311, 42%, 38%)
HSVhsv(311, 59%, 54%)
CMYKcmyk(0%, 58.7%, 10.9%, 45.9%)
CIE-LABlab(37.41, 43.07, -21.23)
CIE-LCHlch(37.41, 48.02, 333.76°)
OKLaboklab(47.83% 0.1251 -0.0576)
OKLCHoklch(47.83% 0.138 335.3)
XYZxyz(15.5196, 9.7608, 19.8017)
Luminance0.0976 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A397B #398A48
analogous
#70398A #8A397B #8A3952
triadic
#8A397B #7B8A39 #397B8A
tetradic
#8A397B #8A7039 #398A48 #39528A
square
#8A397B #8A7039 #398A48 #39528A
split-complementary
#8A397B #528A39 #398A70
monochromatic
#33152E #5F2754 #8A397B #B54BA1 #C777B8

Accessibility & contrast

On white

7.11
#8A397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A397B
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A397B#FFFFFF#000000##FFFFFF
##8A397B1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39507D
Deuteranopia (green-blind)
#525C79
Tritanopia (blue-blind)
#903D54
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a397b;
/* rgb */ color: rgb(138, 57, 123);
/* oklch */ color: oklch(47.8% 0.138 335.3);
Tailwind
colors: {
  custom: {
    50: '#ae74a1',
    500: '#8a397b',
    950: '#000000',
  },
}
SCSS
$custom: #8a397b;
$custom-light: #ae74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a397b",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 311.111,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47825,
    "c": 0.13771,
    "h": 335.3
  },
  "luminance": 0.0976
}

Semantic roles & 50–950 ramp

primary
#8A397B
secondary
#6FB07B
accent
#D16D56
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8A397B

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

Preview Lab → · Contrast checker → · Palette generator →

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