#A51F94#A51F94

#A51F94 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.8% C 0.205 H 334.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#A51F94
RGBrgb(165, 31, 148)
HSLhsl(308, 68%, 38%)
HSVhsv(308, 81%, 65%)
CMYKcmyk(0%, 81.2%, 10.3%, 35.3%)
CIE-LABlab(39.78, 63.52, -32.55)
CIE-LCHlch(39.78, 71.38, 332.86°)
OKLaboklab(50.82% 0.1848 -0.0893)
OKLCHoklch(50.82% 0.205 334.2)
XYZxyz(21.3526, 11.1194, 29.0329)
Luminance0.1112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F94 #1FA530
analogous
#731FA5 #A51F94 #A51F51
triadic
#A51F94 #94A51F #1F94A5
tetradic
#A51F94 #A5731F #1FA530 #1F51A5
square
#A51F94 #A5731F #1FA530 #1F51A5
split-complementary
#A51F94 #51A51F #1FA573
monochromatic
#3E0C38 #711566 #A51F94 #D72AC1 #E15ED0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A51F94#FFFFFF#000000##FFFFFF
##A51F941.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)
#1B5197
Deuteranopia (green-blind)
#516491
Tritanopia (blue-blind)
#AD2E5A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a51f94;
/* rgb */ color: rgb(165, 31, 148);
/* oklch */ color: oklch(50.8% 0.205 334.2);
Tailwind
colors: {
  custom: {
    50: '#c46cb4',
    500: '#a51f94',
    950: '#000000',
  },
}
SCSS
$custom: #a51f94;
$custom-light: #c46cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f94",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 307.612,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50823,
    "c": 0.20522,
    "h": 334.2
  },
  "luminance": 0.11117
}

Semantic roles & 50–950 ramp

primary
#A51F94
secondary
#5BC568
accent
#EB533D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A51F94

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

Preview Lab → · Contrast checker → · Palette generator →

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