#A51FB4#A51FB4

#A51FB4 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.8% C 0.229 H 323.4°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#A51FB4
RGBrgb(165, 31, 180)
HSLhsl(294, 71%, 41%)
HSVhsv(294, 83%, 71%)
CMYKcmyk(8.3%, 82.8%, 0%, 29.4%)
CIE-LABlab(41.65, 68.60, -48.76)
CIE-LCHlch(41.65, 84.16, 324.60°)
OKLaboklab(52.75% 0.1834 -0.1364)
OKLCHoklch(52.75% 0.229 323.4)
XYZxyz(24.2445, 12.2761, 44.2637)
Luminance0.1227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51FB4 #2EB41F
analogous
#5B1FB4 #A51FB4 #B41F79
triadic
#A51FB4 #B4A51F #1FB4A5
tetradic
#A51FB4 #B45B1F #2EB41F #1F79B4
square
#A51FB4 #B45B1F #2EB41F #1F79B4
split-complementary
#A51FB4 #79B41F #1FB45B
monochromatic
#450D4C #751680 #A51FB4 #CB34DC #D968E5

Accessibility & contrast

On white

6.08
#A51FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#A51FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51FB4
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51FB4#FFFFFF#000000##FFFFFF
##A51FB41.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B8
Deuteranopia (green-blind)
#3D67B1
Tritanopia (blue-blind)
#A8406C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a51fb4;
/* rgb */ color: rgb(165, 31, 180);
/* oklch */ color: oklch(52.8% 0.229 323.4);
Tailwind
colors: {
  custom: {
    50: '#c46ecb',
    500: '#a51fb4',
    950: '#000000',
  },
}
SCSS
$custom: #a51fb4;
$custom-light: #c46ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#a51fb4",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 293.96,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52751,
    "c": 0.22855,
    "h": 323.4
  },
  "luminance": 0.12275
}

Semantic roles & 50–950 ramp

primary
#A51FB4
secondary
#6FCB64
accent
#ED3A4C
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130813
muted
#827B82

Preview Lab

Preview with #A51FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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