#A5297F#A5297F

#A5297F is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.5% C 0.182 H 343.1°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#A5297F
RGBrgb(165, 41, 127)
HSLhsl(318, 60%, 40%)
HSVhsv(318, 75%, 65%)
CMYKcmyk(0%, 75.2%, 23%, 35.3%)
CIE-LABlab(39.78, 57.66, -19.67)
CIE-LCHlch(39.78, 60.92, 341.16°)
OKLaboklab(50.49% 0.1737 -0.0526)
OKLCHoklch(50.49% 0.182 343.1)
XYZxyz(20.1415, 11.1196, 21.1601)
Luminance0.1112 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5297F #29A54F
analogous
#8D29A5 #A5297F #A52941
triadic
#A5297F #7FA529 #297FA5
tetradic
#A5297F #A58D29 #29A54F #2941A5
square
#A5297F #A58D29 #29A54F #2941A5
split-complementary
#A5297F #41A529 #29A58D
monochromatic
#431134 #741D59 #A5297F #CF3DA2 #DB6EB9

Accessibility & contrast

On white

6.51
#A5297F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#A5297F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5297F
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5297F#FFFFFF#000000##FFFFFF
##A5297F1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365181
Deuteranopia (green-blind)
#5D657C
Tritanopia (blue-blind)
#B02951
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a5297f;
/* rgb */ color: rgb(165, 41, 127);
/* oklch */ color: oklch(50.5% 0.182 343.1);
Tailwind
colors: {
  custom: {
    50: '#c46fa4',
    500: '#a5297f',
    950: '#000000',
  },
}
SCSS
$custom: #a5297f;
$custom-light: #c46fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#a5297f",
  "rgb": {
    "r": 165,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 318.387,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50494,
    "c": 0.18154,
    "h": 343.1
  },
  "luminance": 0.11118
}

Semantic roles & 50–950 ramp

primary
#A5297F
secondary
#68C284
accent
#E37544
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A5297F

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

Preview Lab → · Contrast checker → · Palette generator →

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