#8A3478#8A3478

#8A3478 is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.0% C 0.143 H 336.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#8A3478
RGBrgb(138, 52, 120)
HSLhsl(313, 45%, 37%)
HSVhsv(313, 62%, 54%)
CMYKcmyk(0%, 62.3%, 13%, 45.9%)
CIE-LABlab(36.40, 44.95, -20.93)
CIE-LCHlch(36.40, 49.58, 335.03°)
OKLaboklab(47.04% 0.1315 -0.0567)
OKLCHoklch(47.04% 0.143 336.7)
XYZxyz(15.0996, 9.2165, 18.7494)
Luminance0.0921 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3478 #348A46
analogous
#71348A #8A3478 #8A344D
triadic
#8A3478 #788A34 #34788A
tetradic
#8A3478 #8A7134 #348A46 #344D8A
square
#8A3478 #8A7134 #348A46 #344D8A
split-complementary
#8A3478 #4D8A34 #348A71
monochromatic
#31132B #5E2351 #8A3478 #B6459F #C96FB6

Accessibility & contrast

On white

7.39
#8A3478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A3478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3478
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3478#FFFFFF#000000##FFFFFF
##8A34781.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364D7A
Deuteranopia (green-blind)
#505A76
Tritanopia (blue-blind)
#913851
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3478;
/* rgb */ color: rgb(138, 52, 120);
/* oklch */ color: oklch(47.0% 0.143 336.7);
Tailwind
colors: {
  custom: {
    50: '#af719f',
    500: '#8a3478',
    950: '#000000',
  },
}
SCSS
$custom: #8a3478;
$custom-light: #af719f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3478",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 120
  },
  "hsl": {
    "h": 312.558,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47037,
    "c": 0.14323,
    "h": 336.7
  },
  "luminance": 0.09215
}

Semantic roles & 50–950 ramp

primary
#8A3478
secondary
#69B178
accent
#D56E53
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3478

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

Preview Lab → · Contrast checker → · Palette generator →

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