#8A5166#8A5166

#8A5166 is a mid, moderate pink. Relative luminance 0.122; OKLCH L 50.7% C 0.081 H 356.8°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8A5166
RGBrgb(138, 81, 102)
HSLhsl(338, 26%, 43%)
HSVhsv(338, 41%, 54%)
CMYKcmyk(0%, 41.3%, 26.1%, 45.9%)
CIE-LABlab(41.61, 26.74, -1.86)
CIE-LCHlch(41.61, 26.80, 356.03°)
OKLaboklab(50.71% 0.0806 -0.0045)
OKLCHoklch(50.71% 0.081 356.8)
XYZxyz(15.8223, 12.2486, 14.0987)
Luminance0.1225 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5166 #518A75
analogous
#8A5182 #8A5166 #8A5951
triadic
#8A5166 #668A51 #51668A
tetradic
#8A5166 #828A51 #518A75 #59518A
square
#8A5166 #828A51 #518A75 #59518A
split-complementary
#8A5166 #518A59 #51828A
monochromatic
#3D242D #633A49 #8A5166 #AA6E84 #C195A5

Accessibility & contrast

On white

6.09
#8A5166 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A5166 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5166
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5166#FFFFFF#000000##FFFFFF
##8A51661.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#585C67
Deuteranopia (green-blind)
#666665
Tritanopia (blue-blind)
#924E58
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a5166;
/* rgb */ color: rgb(138, 81, 102);
/* oklch */ color: oklch(50.7% 0.081 356.8);
Tailwind
colors: {
  custom: {
    50: '#ae8391',
    500: '#8a5166',
    950: '#000000',
  },
}
SCSS
$custom: #8a5166;
$custom-light: #ae8391;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5166",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 102
  },
  "hsl": {
    "h": 337.895,
    "s": 26.027,
    "l": 42.941
  },
  "oklch": {
    "l": 0.50706,
    "c": 0.0807,
    "h": 356.8
  },
  "luminance": 0.12247
}

Semantic roles & 50–950 ramp

primary
#8A5166
secondary
#89AEA0
accent
#C2A065
background
#FAF8F8
surface
#F4EFF0
border
#CECACB
text
#100A0C
muted
#7F7C7D

Preview Lab

Preview with #8A5166

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

Preview Lab → · Contrast checker → · Palette generator →

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