#A5287F#A5287F

#A5287F is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.4% C 0.183 H 343.1°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#A5287F
RGBrgb(165, 40, 127)
HSLhsl(318, 61%, 40%)
HSVhsv(318, 76%, 65%)
CMYKcmyk(0%, 75.8%, 23%, 35.3%)
CIE-LABlab(39.67, 57.98, -19.85)
CIE-LCHlch(39.67, 61.29, 341.10°)
OKLaboklab(50.41% 0.1747 -0.0531)
OKLCHoklch(50.41% 0.183 343.1)
XYZxyz(20.1074, 11.0513, 21.1488)
Luminance0.1105 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5287F #28A54E
analogous
#8C28A5 #A5287F #A52840
triadic
#A5287F #7FA528 #287FA5
tetradic
#A5287F #A58C28 #28A54E #2840A5
square
#A5287F #A58C28 #28A54E #2840A5
split-complementary
#A5287F #40A528 #28A58C
monochromatic
#421033 #741C59 #A5287F #CF3BA2 #DB6CBA

Accessibility & contrast

On white

6.54
#A5287F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#A5287F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5287F
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5287F#FFFFFF#000000##FFFFFF
##A5287F1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355081
Deuteranopia (green-blind)
#5C657C
Tritanopia (blue-blind)
#B02850
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a5287f;
/* rgb */ color: rgb(165, 40, 127);
/* oklch */ color: oklch(50.4% 0.183 343.1);
Tailwind
colors: {
  custom: {
    50: '#c46fa4',
    500: '#a5287f',
    950: '#000000',
  },
}
SCSS
$custom: #a5287f;
$custom-light: #c46fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#a5287f",
  "rgb": {
    "r": 165,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 318.24,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.5041,
    "c": 0.18264,
    "h": 343.1
  },
  "luminance": 0.11049
}

Semantic roles & 50–950 ramp

primary
#A5287F
secondary
#67C283
accent
#E47444
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A5287F

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

Preview Lab → · Contrast checker → · Palette generator →

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