#A5278E#A5278E

#A5278E is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.1% C 0.194 H 336.7°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#A5278E
RGBrgb(165, 39, 142)
HSLhsl(311, 62%, 40%)
HSVhsv(311, 76%, 65%)
CMYKcmyk(0%, 76.4%, 13.9%, 35.3%)
CIE-LABlab(40.25, 60.39, -28.15)
CIE-LCHlch(40.25, 66.63, 335.01°)
OKLaboklab(51.06% 0.1777 -0.0767)
OKLCHoklch(51.06% 0.194 336.7)
XYZxyz(21.1254, 11.4053, 26.6748)
Luminance0.1140 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5278E #27A53E
analogous
#7D27A5 #A5278E #A5274F
triadic
#A5278E #8EA527 #278EA5
tetradic
#A5278E #A57D27 #27A53E #274FA5
square
#A5278E #A57D27 #27A53E #274FA5
split-complementary
#A5278E #4FA527 #27A57D
monochromatic
#421039 #741B63 #A5278E #D039B5 #DC6AC7

Accessibility & contrast

On white

6.40
#A5278E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A5278E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5278E
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5278E#FFFFFF#000000##FFFFFF
##A5278E1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5391
Deuteranopia (green-blind)
#56668B
Tritanopia (blue-blind)
#AE3058
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a5278e;
/* rgb */ color: rgb(165, 39, 142);
/* oklch */ color: oklch(51.1% 0.194 336.7);
Tailwind
colors: {
  custom: {
    50: '#c36faf',
    500: '#a5278e',
    950: '#000000',
  },
}
SCSS
$custom: #a5278e;
$custom-light: #c36faf;
$custom-dark: #000000;
JSON
{
  "hex": "#a5278e",
  "rgb": {
    "r": 165,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 310.952,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.51063,
    "c": 0.19356,
    "h": 336.7
  },
  "luminance": 0.11403
}

Semantic roles & 50–950 ramp

primary
#A5278E
secondary
#66C276
accent
#E56043
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5278E

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

Preview Lab → · Contrast checker → · Palette generator →

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