#8A5175#8A5175

#8A5175 is a mid, moderate pink. Relative luminance 0.126; OKLCH L 51.3% C 0.090 H 342.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8A5175
RGBrgb(138, 81, 117)
HSLhsl(322, 26%, 43%)
HSVhsv(322, 41%, 54%)
CMYKcmyk(0%, 41.3%, 15.2%, 45.9%)
CIE-LABlab(42.11, 29.19, -10.33)
CIE-LCHlch(42.11, 30.97, 340.51°)
OKLaboklab(51.26% 0.0859 -0.0274)
OKLCHoklch(51.26% 0.09 342.3)
XYZxyz(16.6347, 12.5735, 18.3769)
Luminance0.1257 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5175 #518A66
analogous
#82518A #8A5175 #8A5159
triadic
#8A5175 #758A51 #51758A
tetradic
#8A5175 #8A8251 #518A66 #51598A
square
#8A5175 #8A8251 #518A66 #51598A
split-complementary
#8A5175 #598A51 #518A82
monochromatic
#3D2434 #633A54 #8A5175 #AA6E94 #C195B0

Accessibility & contrast

On white

5.98
#8A5175 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A5175 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5175
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5175#FFFFFF#000000##FFFFFF
##8A51751.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#545E76
Deuteranopia (green-blind)
#636773
Tritanopia (blue-blind)
#90515E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a5175;
/* rgb */ color: rgb(138, 81, 117);
/* oklch */ color: oklch(51.3% 0.090 342.3);
Tailwind
colors: {
  custom: {
    50: '#ad839c',
    500: '#8a5175',
    950: '#000000',
  },
}
SCSS
$custom: #8a5175;
$custom-light: #ad839c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5175",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 117
  },
  "hsl": {
    "h": 322.105,
    "s": 26.027,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51255,
    "c": 0.09013,
    "h": 342.3
  },
  "luminance": 0.12572
}

Semantic roles & 50–950 ramp

primary
#8A5175
secondary
#89AE97
accent
#C28865
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#100B0E
muted
#7F7C7E

Preview Lab

Preview with #8A5175

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

Preview Lab → · Contrast checker → · Palette generator →

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