#A5254F#A5254F

#A5254F is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.4% C 0.165 H 6.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#A5254F
RGBrgb(165, 37, 79)
HSLhsl(340, 63%, 40%)
HSVhsv(340, 78%, 65%)
CMYKcmyk(0%, 77.6%, 52.1%, 35.3%)
CIE-LABlab(37.64, 53.72, 7.42)
CIE-LCHlch(37.64, 54.23, 7.87°)
OKLaboklab(48.38% 0.1639 0.0193)
OKLCHoklch(48.38% 0.165 6.7)
XYZxyz(17.5915, 9.8894, 8.3782)
Luminance0.0989 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5254F #25A57B
analogous
#A5258F #A5254F #A53B25
triadic
#A5254F #4FA525 #254FA5
tetradic
#A5254F #8FA525 #25A57B #3B25A5
square
#A5254F #8FA525 #25A57B #3B25A5
split-complementary
#A5254F #25A53B #258FA5
monochromatic
#410F1F #731A37 #A5254F #D23569 #DD678E

Accessibility & contrast

On white

7.05
#A5254F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#A5254F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A5254F
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5254F#FFFFFF#000000##FFFFFF
##A5254F1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464850
Deuteranopia (green-blind)
#67624C
Tritanopia (blue-blind)
#B40037
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #a5254f;
/* rgb */ color: rgb(165, 37, 79);
/* oklch */ color: oklch(48.4% 0.165 6.7);
Tailwind
colors: {
  custom: {
    50: '#c66c80',
    500: '#a5254f',
    950: '#000000',
  },
}
SCSS
$custom: #a5254f;
$custom-light: #c66c80;
$custom-dark: #000000;
JSON
{
  "hex": "#a5254f",
  "rgb": {
    "r": 165,
    "g": 37,
    "b": 79
  },
  "hsl": {
    "h": 340.313,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48381,
    "c": 0.16506,
    "h": 6.7
  },
  "luminance": 0.09887
}

Semantic roles & 50–950 ramp

primary
#A5254F
secondary
#63C3A3
accent
#E6B041
background
#FCF6F7
surface
#F9ECEE
border
#D2C7C9
text
#14080A
muted
#827A7C

Preview Lab

Preview with #A5254F

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

Preview Lab → · Contrast checker → · Palette generator →

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