#A51FA8#A51FA8

#A51FA8 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 52.0% C 0.220 H 327.2°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#A51FA8
RGBrgb(165, 31, 168)
HSLhsl(299, 69%, 39%)
HSVhsv(299, 82%, 66%)
CMYKcmyk(1.8%, 81.5%, 0%, 34.1%)
CIE-LABlab(40.91, 66.61, -42.82)
CIE-LCHlch(40.91, 79.19, 327.27°)
OKLaboklab(51.99% 0.1845 -0.119)
OKLCHoklch(51.99% 0.22 327.2)
XYZxyz(23.0746, 11.8082, 38.1021)
Luminance0.1181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51FA8 #22A81F
analogous
#611FA8 #A51FA8 #A81F67
triadic
#A51FA8 #A8A51F #1FA8A5
tetradic
#A51FA8 #A8611F #22A81F #1F67A8
square
#A51FA8 #A8611F #22A81F #1F67A8
split-complementary
#A51FA8 #67A81F #1FA861
monochromatic
#400C41 #721574 #A51FA8 #D42CD8 #DF60E2

Accessibility & contrast

On white

6.25
#A51FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#A51FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51FA8
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51FA8#FFFFFF#000000##FFFFFF
##A51FA81.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#4666A5
Tritanopia (blue-blind)
#AA3965
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a51fa8;
/* rgb */ color: rgb(165, 31, 168);
/* oklch */ color: oklch(52.0% 0.220 327.2);
Tailwind
colors: {
  custom: {
    50: '#c46dc2',
    500: '#a51fa8',
    950: '#000000',
  },
}
SCSS
$custom: #a51fa8;
$custom-light: #c46dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a51fa8",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 298.686,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51989,
    "c": 0.21957,
    "h": 327.2
  },
  "luminance": 0.11806
}

Semantic roles & 50–950 ramp

primary
#A51FA8
secondary
#5FC65D
accent
#EC3C40
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A51FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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