#8A397C#8A397C

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

Color values

HEX#8A397C
RGBrgb(138, 57, 124)
HSLhsl(310, 42%, 38%)
HSVhsv(310, 59%, 54%)
CMYKcmyk(0%, 58.7%, 10.1%, 45.9%)
CIE-LABlab(37.46, 43.24, -21.78)
CIE-LCHlch(37.46, 48.42, 333.27°)
OKLaboklab(47.87% 0.1253 -0.0592)
OKLCHoklch(47.87% 0.139 334.7)
XYZxyz(15.5825, 9.7859, 20.1330)
Luminance0.0979 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A397C #398A47
analogous
#6F398A #8A397C #8A3954
triadic
#8A397C #7C8A39 #397C8A
tetradic
#8A397C #8A6F39 #398A47 #39548A
square
#8A397C #8A6F39 #398A47 #39548A
split-complementary
#8A397C #548A39 #398A6F
monochromatic
#33152E #5F2755 #8A397C #B54BA3 #C777B9

Accessibility & contrast

On white

7.10
#8A397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A397C
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A397C#FFFFFF#000000##FFFFFF
##8A397C1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517E
Deuteranopia (green-blind)
#515D7A
Tritanopia (blue-blind)
#903E55
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a397c;
/* rgb */ color: rgb(138, 57, 124);
/* oklch */ color: oklch(47.9% 0.139 334.7);
Tailwind
colors: {
  custom: {
    50: '#ae74a2',
    500: '#8a397c',
    950: '#000000',
  },
}
SCSS
$custom: #8a397c;
$custom-light: #ae74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a397c",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 310.37,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47874,
    "c": 0.13855,
    "h": 334.7
  },
  "luminance": 0.09785
}

Semantic roles & 50–950 ramp

primary
#8A397C
secondary
#6FB07A
accent
#D16C56
background
#FBF7FA
surface
#F6EDF3
border
#D0C8CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A397C

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

Preview Lab → · Contrast checker → · Palette generator →

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