#8A3479#8A3479

#8A3479 is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.1% C 0.144 H 336.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8A3479
RGBrgb(138, 52, 121)
HSLhsl(312, 45%, 37%)
HSVhsv(312, 62%, 54%)
CMYKcmyk(0%, 62.3%, 12.3%, 45.9%)
CIE-LABlab(36.44, 45.11, -21.48)
CIE-LCHlch(36.44, 49.96, 334.54°)
OKLaboklab(47.09% 0.1317 -0.0583)
OKLCHoklch(47.09% 0.144 336.1)
XYZxyz(15.1606, 9.2409, 19.0707)
Luminance0.0924 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3479 #348A45
analogous
#70348A #8A3479 #8A344E
triadic
#8A3479 #798A34 #34798A
tetradic
#8A3479 #8A7034 #348A45 #344E8A
square
#8A3479 #8A7034 #348A45 #344E8A
split-complementary
#8A3479 #4E8A34 #348A70
monochromatic
#31132B #5E2352 #8A3479 #B645A0 #C96FB7

Accessibility & contrast

On white

7.37
#8A3479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A3479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3479
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3479#FFFFFF#000000##FFFFFF
##8A34791.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354D7B
Deuteranopia (green-blind)
#505A77
Tritanopia (blue-blind)
#913951
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3479;
/* rgb */ color: rgb(138, 52, 121);
/* oklch */ color: oklch(47.1% 0.144 336.1);
Tailwind
colors: {
  custom: {
    50: '#af71a0',
    500: '#8a3479',
    950: '#000000',
  },
}
SCSS
$custom: #8a3479;
$custom-light: #af71a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3479",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 121
  },
  "hsl": {
    "h": 311.86,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47086,
    "c": 0.14402,
    "h": 336.1
  },
  "luminance": 0.0924
}

Semantic roles & 50–950 ramp

primary
#8A3479
secondary
#69B177
accent
#D56D53
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3479

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

Preview Lab → · Contrast checker → · Palette generator →

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