#8A5F7C#8A5F7C

#8A5F7C is a mid, moderate pink. Relative luminance 0.150; OKLCH L 54.1% C 0.069 H 339.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A5F7C
RGBrgb(138, 95, 124)
HSLhsl(320, 18%, 46%)
HSVhsv(320, 31%, 54%)
CMYKcmyk(0%, 31.2%, 10.1%, 45.9%)
CIE-LABlab(45.69, 22.33, -9.20)
CIE-LCHlch(45.69, 24.15, 337.60°)
OKLaboklab(54.06% 0.0647 -0.0244)
OKLCHoklch(54.06% 0.069 339.3)
XYZxyz(18.2114, 15.0437, 21.0093)
Luminance0.1504 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5F7C #5F8A6D
analogous
#825F8A #8A5F7C #8A5F66
triadic
#8A5F7C #7C8A5F #5F7C8A
tetradic
#8A5F7C #8A825F #5F8A6D #5F668A
square
#8A5F7C #8A825F #5F8A6D #5F668A
split-complementary
#8A5F7C #668A5F #5F8A82
monochromatic
#422D3B #66465B #8A5F7C #A77F9A #C0A3B7

Accessibility & contrast

On white

5.24
#8A5F7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A5F7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5F7C
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5F7C#FFFFFF#000000##FFFFFF
##8A5F7C1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60687D
Deuteranopia (green-blind)
#6B6F7B
Tritanopia (blue-blind)
#8F6069
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a5f7c;
/* rgb */ color: rgb(138, 95, 124);
/* oklch */ color: oklch(54.1% 0.069 339.3);
Tailwind
colors: {
  custom: {
    50: '#ad8da2',
    500: '#8a5f7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a5f7c;
$custom-light: #ad8da2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5f7c",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 124
  },
  "hsl": {
    "h": 319.535,
    "s": 18.455,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54058,
    "c": 0.06916,
    "h": 339.3
  },
  "luminance": 0.15043
}

Semantic roles & 50–950 ramp

primary
#8A5F7C
secondary
#96AE9E
accent
#BB866D
background
#FAF8F9
surface
#F4F0F2
border
#CECBCC
text
#100C0F
muted
#7F7D7E

Preview Lab

Preview with #8A5F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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