#A51F9B#A51F9B

#A51F9B is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.2% C 0.210 H 331.6°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#A51F9B
RGBrgb(165, 31, 155)
HSLhsl(304, 68%, 38%)
HSVhsv(304, 81%, 65%)
CMYKcmyk(0%, 81.2%, 6.1%, 35.3%)
CIE-LABlab(40.16, 64.57, -36.20)
CIE-LCHlch(40.16, 74.02, 330.72°)
OKLaboklab(51.22% 0.1849 -0.0998)
OKLCHoklch(51.22% 0.21 331.6)
XYZxyz(21.9235, 11.3477, 32.0397)
Luminance0.1135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F9B #1FA529
analogous
#6C1FA5 #A51F9B #A51F58
triadic
#A51F9B #9BA51F #1F9BA5
tetradic
#A51F9B #A56C1F #1FA529 #1F58A5
square
#A51F9B #A56C1F #1FA529 #1F58A5
split-complementary
#A51F9B #58A51F #1FA56C
monochromatic
#3E0C3A #71156B #A51F9B #D72ACA #E15ED7

Accessibility & contrast

On white

6.42
#A51F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A51F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51F9B
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F9B#FFFFFF#000000##FFFFFF
##A51F9B1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E539E
Deuteranopia (green-blind)
#4E6598
Tritanopia (blue-blind)
#AC325E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a51f9b;
/* rgb */ color: rgb(165, 31, 155);
/* oklch */ color: oklch(51.2% 0.210 331.6);
Tailwind
colors: {
  custom: {
    50: '#c46db9',
    500: '#a51f9b',
    950: '#000000',
  },
}
SCSS
$custom: #a51f9b;
$custom-light: #c46db9;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f9b",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 304.478,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.51216,
    "c": 0.21013,
    "h": 331.6
  },
  "luminance": 0.11346
}

Semantic roles & 50–950 ramp

primary
#A51F9B
secondary
#5BC563
accent
#EB4A3D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A51F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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