#A51F7B#A51F7B

#A51F7B is a mid, vivid pink. Relative luminance 0.104; OKLCH L 49.6% C 0.189 H 344.4°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#A51F7B
RGBrgb(165, 31, 123)
HSLhsl(319, 68%, 38%)
HSVhsv(319, 81%, 65%)
CMYKcmyk(0%, 81.2%, 25.5%, 35.3%)
CIE-LABlab(38.57, 60.09, -19.06)
CIE-LCHlch(38.57, 63.04, 342.41°)
OKLaboklab(49.56% 0.1822 -0.0509)
OKLCHoklch(49.56% 0.189 344.4)
XYZxyz(19.5830, 10.4115, 19.7134)
Luminance0.1041 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F7B #1FA549
analogous
#8C1FA5 #A51F7B #A51F38
triadic
#A51F7B #7BA51F #1F7BA5
tetradic
#A51F7B #A58C1F #1FA549 #1F38A5
square
#A51F7B #A58C1F #1FA549 #1F38A5
split-complementary
#A51F7B #38A51F #1FA58C
monochromatic
#3E0C2E #711555 #A51F7B #D72AA1 #E15EB8

Accessibility & contrast

On white

6.81
#A51F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#A51F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51F7B
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F7B#FFFFFF#000000##FFFFFF
##A51F7B1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314D7D
Deuteranopia (green-blind)
#5B6378
Tritanopia (blue-blind)
#B01D4C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a51f7b;
/* rgb */ color: rgb(165, 31, 123);
/* oklch */ color: oklch(49.6% 0.189 344.4);
Tailwind
colors: {
  custom: {
    50: '#c46ba1',
    500: '#a51f7b',
    950: '#000000',
  },
}
SCSS
$custom: #a51f7b;
$custom-light: #c46ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f7b",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 318.806,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4956,
    "c": 0.18912,
    "h": 344.4
  },
  "luminance": 0.10409
}

Semantic roles & 50–950 ramp

primary
#A51F7B
secondary
#5BC57C
accent
#EB733D
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080F
muted
#827A7E

Preview Lab

Preview with #A51F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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