#A5278C#A5278C

#A5278C is a mid, vivid pink. Relative luminance 0.113; OKLCH L 51.0% C 0.192 H 337.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#A5278C
RGBrgb(165, 39, 140)
HSLhsl(312, 62%, 40%)
HSVhsv(312, 76%, 65%)
CMYKcmyk(0%, 76.4%, 15.2%, 35.3%)
CIE-LABlab(40.16, 60.10, -27.08)
CIE-LCHlch(40.16, 65.92, 335.74°)
OKLaboklab(50.96% 0.1775 -0.0736)
OKLCHoklch(50.96% 0.192 337.5)
XYZxyz(20.9766, 11.3458, 25.8911)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5278C #27A540
analogous
#7F27A5 #A5278C #A5274D
triadic
#A5278C #8CA527 #278CA5
tetradic
#A5278C #A57F27 #27A540 #274DA5
square
#A5278C #A57F27 #27A540 #274DA5
split-complementary
#A5278C #4DA527 #27A57F
monochromatic
#421038 #741B62 #A5278C #D039B2 #DC6AC5

Accessibility & contrast

On white

6.42
#A5278C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A5278C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5278C
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5278C#FFFFFF#000000##FFFFFF
##A5278C1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C528F
Deuteranopia (green-blind)
#576589
Tritanopia (blue-blind)
#AE2F57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a5278c;
/* rgb */ color: rgb(165, 39, 140);
/* oklch */ color: oklch(51.0% 0.192 337.5);
Tailwind
colors: {
  custom: {
    50: '#c46fae',
    500: '#a5278c',
    950: '#000000',
  },
}
SCSS
$custom: #a5278c;
$custom-light: #c46fae;
$custom-dark: #000000;
JSON
{
  "hex": "#a5278c",
  "rgb": {
    "r": 165,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 311.905,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.50961,
    "c": 0.19219,
    "h": 337.5
  },
  "luminance": 0.11344
}

Semantic roles & 50–950 ramp

primary
#A5278C
secondary
#66C278
accent
#E56343
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5278C

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

Preview Lab → · Contrast checker → · Palette generator →

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