#8A4978#8A4978

#8A4978 is a mid, moderate pink. Relative luminance 0.115; OKLCH L 50.0% C 0.107 H 338.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A4978
RGBrgb(138, 73, 120)
HSLhsl(317, 31%, 41%)
HSVhsv(317, 47%, 54%)
CMYKcmyk(0%, 47.1%, 13%, 45.9%)
CIE-LABlab(40.45, 34.20, -14.69)
CIE-LCHlch(40.45, 37.23, 336.75°)
OKLaboklab(50.04% 0.0999 -0.0394)
OKLCHoklch(50.04% 0.107 338.5)
XYZxyz(16.2540, 11.5255, 19.1342)
Luminance0.1152 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4978 #498A5B
analogous
#7C498A #8A4978 #8A4958
triadic
#8A4978 #788A49 #49788A
tetradic
#8A4978 #8A7C49 #498A5B #49588A
square
#8A4978 #8A7C49 #498A5B #49588A
split-complementary
#8A4978 #588A49 #498A7C
monochromatic
#3A1F32 #623455 #8A4978 #AD6398 #C28BB3

Accessibility & contrast

On white

6.35
#8A4978 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A4978 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4978
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4978#FFFFFF#000000##FFFFFF
##8A49781.006.353.306.35
#FFFFFF6.351.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B597A
Deuteranopia (green-blind)
#5C6376
Tritanopia (blue-blind)
#904B5B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a4978;
/* rgb */ color: rgb(138, 73, 120);
/* oklch */ color: oklch(50.0% 0.107 338.5);
Tailwind
colors: {
  custom: {
    50: '#ae7e9f',
    500: '#8a4978',
    950: '#000000',
  },
}
SCSS
$custom: #8a4978;
$custom-light: #ae7e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4978",
  "rgb": {
    "r": 138,
    "g": 73,
    "b": 120
  },
  "hsl": {
    "h": 316.615,
    "s": 30.806,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50042,
    "c": 0.1074,
    "h": 338.5
  },
  "luminance": 0.11524
}

Semantic roles & 50–950 ramp

primary
#8A4978
secondary
#81AE8D
accent
#C77D61
background
#FAF7F9
surface
#F4EEF2
border
#CEC9CC
text
#100A0E
muted
#7F7C7E

Preview Lab

Preview with #8A4978

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

Preview Lab → · Contrast checker → · Palette generator →

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