#A51E98#A51E98

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

Color values

HEX#A51E98
RGBrgb(165, 30, 152)
HSLhsl(306, 69%, 38%)
HSVhsv(306, 82%, 65%)
CMYKcmyk(0%, 81.8%, 7.9%, 35.3%)
CIE-LABlab(39.91, 64.36, -34.78)
CIE-LCHlch(39.91, 73.16, 331.61°)
OKLaboklab(50.98% 0.1856 -0.0957)
OKLCHoklch(50.98% 0.209 332.7)
XYZxyz(21.6489, 11.1968, 30.7207)
Luminance0.1119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51E98 #1EA52B
analogous
#6E1EA5 #A51E98 #A51E54
triadic
#A51E98 #98A51E #1E98A5
tetradic
#A51E98 #A56E1E #1EA52B #1E54A5
square
#A51E98 #A56E1E #1EA52B #1E54A5
split-complementary
#A51E98 #54A51E #1EA56E
monochromatic
#3D0B39 #711568 #A51E98 #D828C7 #E15CD5

Accessibility & contrast

On white

6.48
#A51E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A51E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51E98
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51E98#FFFFFF#000000##FFFFFF
##A51E981.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a51e98;
/* rgb */ color: rgb(165, 30, 152);
/* oklch */ color: oklch(51.0% 0.209 332.7);
Tailwind
colors: {
  custom: {
    50: '#c46cb7',
    500: '#a51e98',
    950: '#000000',
  },
}
SCSS
$custom: #a51e98;
$custom-light: #c46cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a51e98",
  "rgb": {
    "r": 165,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 305.778,
    "s": 69.231,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50984,
    "c": 0.20883,
    "h": 332.7
  },
  "luminance": 0.11195
}

Semantic roles & 50–950 ramp

primary
#A51E98
secondary
#59C564
accent
#EC4D3C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A51E98

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

Preview Lab → · Contrast checker → · Palette generator →

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