#A51F98#A51F98

#A51F98 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.0% C 0.208 H 332.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#A51F98
RGBrgb(165, 31, 152)
HSLhsl(306, 68%, 38%)
HSVhsv(306, 81%, 65%)
CMYKcmyk(0%, 81.2%, 7.9%, 35.3%)
CIE-LABlab(40.00, 64.11, -34.64)
CIE-LCHlch(40.00, 72.88, 331.62°)
OKLaboklab(51.04% 0.1849 -0.0953)
OKLCHoklch(51.04% 0.208 332.7)
XYZxyz(21.6747, 11.2482, 30.7293)
Luminance0.1125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F98 #1FA52C
analogous
#6F1FA5 #A51F98 #A51F55
triadic
#A51F98 #98A51F #1F98A5
tetradic
#A51F98 #A56F1F #1FA52C #1F55A5
square
#A51F98 #A56F1F #1FA52C #1F55A5
split-complementary
#A51F98 #55A51F #1FA56F
monochromatic
#3E0C39 #711569 #A51F98 #D72AC6 #E15ED4

Accessibility & contrast

On white

6.46
#A51F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#A51F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51F98
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F98#FFFFFF#000000##FFFFFF
##A51F981.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15529B
Deuteranopia (green-blind)
#4F6595
Tritanopia (blue-blind)
#AD305C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a51f98;
/* rgb */ color: rgb(165, 31, 152);
/* oklch */ color: oklch(51.0% 0.208 332.7);
Tailwind
colors: {
  custom: {
    50: '#c46db7',
    500: '#a51f98',
    950: '#000000',
  },
}
SCSS
$custom: #a51f98;
$custom-light: #c46db7;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f98",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 305.821,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.51045,
    "c": 0.208,
    "h": 332.7
  },
  "luminance": 0.11246
}

Semantic roles & 50–950 ramp

primary
#A51F98
secondary
#5BC565
accent
#EB4E3D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A51F98

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

Preview Lab → · Contrast checker → · Palette generator →

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