#8A4170#8A4170

#8A4170 is a mid, moderate pink. Relative luminance 0.104; OKLCH L 48.5% C 0.116 H 342.9°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8A4170
RGBrgb(138, 65, 112)
HSLhsl(321, 36%, 40%)
HSVhsv(321, 53%, 54%)
CMYKcmyk(0%, 52.9%, 18.8%, 45.9%)
CIE-LABlab(38.47, 37.18, -12.75)
CIE-LCHlch(38.47, 39.30, 341.07°)
OKLaboklab(48.46% 0.1104 -0.0339)
OKLCHoklch(48.46% 0.116 342.9)
XYZxyz(15.2965, 10.3549, 16.5191)
Luminance0.1035 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4170 #418A5B
analogous
#80418A #8A4170 #8A414B
triadic
#8A4170 #708A41 #41708A
tetradic
#8A4170 #8A8041 #418A5B #414B8A
square
#8A4170 #8A8041 #418A5B #414B8A
split-complementary
#8A4170 #4B8A41 #418A80
monochromatic
#371A2C #602D4E #8A4170 #B05891 #C482AC

Accessibility & contrast

On white

6.84
#8A4170 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A4170 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4170
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4170#FFFFFF#000000##FFFFFF
##8A41701.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465372
Deuteranopia (green-blind)
#5A5F6E
Tritanopia (blue-blind)
#924153
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a4170;
/* rgb */ color: rgb(138, 65, 112);
/* oklch */ color: oklch(48.5% 0.116 342.9);
Tailwind
colors: {
  custom: {
    50: '#ae7899',
    500: '#8a4170',
    950: '#000000',
  },
}
SCSS
$custom: #8a4170;
$custom-light: #ae7899;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4170",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 112
  },
  "hsl": {
    "h": 321.37,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48459,
    "c": 0.11552,
    "h": 342.9
  },
  "luminance": 0.10354
}

Semantic roles & 50–950 ramp

primary
#8A4170
secondary
#78AE8C
accent
#CC845C
background
#FAF7F9
surface
#F5EDF2
border
#CFC8CC
text
#11090D
muted
#807B7E

Preview Lab

Preview with #8A4170

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

Preview Lab → · Contrast checker → · Palette generator →

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