#A5478B#A5478B

#A5478B is a mid, vivid pink. Relative luminance 0.144; OKLCH L 54.3% C 0.148 H 339.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#A5478B
RGBrgb(165, 71, 139)
HSLhsl(317, 40%, 46%)
HSVhsv(317, 57%, 65%)
CMYKcmyk(0%, 57%, 15.8%, 35.3%)
CIE-LABlab(44.76, 47.08, -19.34)
CIE-LCHlch(44.76, 50.90, 337.67°)
OKLaboklab(54.31% 0.1389 -0.052)
OKLCHoklch(54.31% 0.148 339.5)
XYZxyz(22.4308, 14.3717, 26.0137)
Luminance0.1437 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5478B #47A561
analogous
#9047A5 #A5478B #A5475C
triadic
#A5478B #8BA547 #478BA5
tetradic
#A5478B #A59047 #47A561 #475CA5
square
#A5478B #A59047 #47A561 #475CA5
split-complementary
#A5478B #5CA547 #47A590
monochromatic
#4F2243 #7A3567 #A5478B #BF6AA8 #D195C1

Accessibility & contrast

On white

5.42
#A5478B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#A5478B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5478B
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5478B#FFFFFF#000000##FFFFFF
##A5478B1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B608D
Deuteranopia (green-blind)
#666F89
Tritanopia (blue-blind)
#AE4963
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a5478b;
/* rgb */ color: rgb(165, 71, 139);
/* oklch */ color: oklch(54.3% 0.148 339.5);
Tailwind
colors: {
  custom: {
    50: '#c27fad',
    500: '#a5478b',
    950: '#000000',
  },
}
SCSS
$custom: #a5478b;
$custom-light: #c27fad;
$custom-dark: #000000;
JSON
{
  "hex": "#a5478b",
  "rgb": {
    "r": 165,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 316.596,
    "s": 39.831,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54309,
    "c": 0.14831,
    "h": 339.5
  },
  "luminance": 0.1437
}

Semantic roles & 50–950 ramp

primary
#A5478B
secondary
#8BBD99
accent
#D07958
background
#FCF7FA
surface
#F8EEF4
border
#D1C9CE
text
#130A10
muted
#827C7F

Preview Lab

Preview with #A5478B

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

Preview Lab → · Contrast checker → · Palette generator →

#A5478B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva