#A7254C#A7254C

#A7254C is a mid, vivid pink. Relative luminance 0.101; OKLCH L 48.7% C 0.166 H 8.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#A7254C
RGBrgb(167, 37, 76)
HSLhsl(342, 64%, 40%)
HSVhsv(342, 78%, 65%)
CMYKcmyk(0%, 77.8%, 54.5%, 34.5%)
CIE-LABlab(37.96, 54.06, 9.84)
CIE-LCHlch(37.96, 54.94, 10.31°)
OKLaboklab(48.66% 0.1644 0.0251)
OKLCHoklch(48.66% 0.166 8.7)
XYZxyz(17.9041, 10.0630, 7.8357)
Luminance0.1006 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7254C #25A780
analogous
#A7258D #A7254C #A73F25
triadic
#A7254C #4CA725 #254CA7
tetradic
#A7254C #8DA725 #25A780 #3F25A7
square
#A7254C #8DA725 #25A780 #3F25A7
split-complementary
#A7254C #25A73F #258DA7
monochromatic
#430F1E #751A35 #A7254C #D33765 #DE698C

Accessibility & contrast

On white

6.97
#A7254C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#A7254C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7254C
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7254C#FFFFFF#000000##FFFFFF
##A7254C1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47494D
Deuteranopia (green-blind)
#696349
Tritanopia (blue-blind)
#B70036
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #a7254c;
/* rgb */ color: rgb(167, 37, 76);
/* oklch */ color: oklch(48.7% 0.166 8.7);
Tailwind
colors: {
  custom: {
    50: '#c76c7d',
    500: '#a7254c',
    950: '#000000',
  },
}
SCSS
$custom: #a7254c;
$custom-light: #c76c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#a7254c",
  "rgb": {
    "r": 167,
    "g": 37,
    "b": 76
  },
  "hsl": {
    "h": 342,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.48656,
    "c": 0.16632,
    "h": 8.7
  },
  "luminance": 0.1006
}

Semantic roles & 50–950 ramp

primary
#A7254C
secondary
#64C4A7
accent
#E7B541
background
#FDF6F7
surface
#FAECEE
border
#D3C7C9
text
#140809
muted
#837A7B

Preview Lab

Preview with #A7254C

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

Preview Lab → · Contrast checker → · Palette generator →

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