#A51EA6#A51EA6

#A51EA6 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.8% C 0.219 H 327.8°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#A51EA6
RGBrgb(165, 30, 166)
HSLhsl(300, 69%, 38%)
HSVhsv(300, 82%, 65%)
CMYKcmyk(0.6%, 81.9%, 0%, 34.9%)
CIE-LABlab(40.71, 66.53, -41.94)
CIE-LCHlch(40.71, 78.65, 327.77°)
OKLaboklab(51.81% 0.1853 -0.1165)
OKLCHoklch(51.81% 0.219 327.8)
XYZxyz(22.8640, 11.6828, 37.1198)
Luminance0.1168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51EA6 #1FA61E
analogous
#611EA6 #A51EA6 #A61E63
triadic
#A51EA6 #A6A51E #1EA6A5
tetradic
#A51EA6 #A6611E #1FA61E #1E63A6
square
#A51EA6 #A6611E #1FA61E #1E63A6
split-complementary
#A51EA6 #63A61E #1EA661
monochromatic
#3E0B3E #711572 #A51EA6 #D729D8 #E15DE2

Accessibility & contrast

On white

6.29
#A51EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A51EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51EA6
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51EA6#FFFFFF#000000##FFFFFF
##A51EA61.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#4766A3
Tritanopia (blue-blind)
#AA3764
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a51ea6;
/* rgb */ color: rgb(165, 30, 166);
/* oklch */ color: oklch(51.8% 0.219 327.8);
Tailwind
colors: {
  custom: {
    50: '#c46dc1',
    500: '#a51ea6',
    950: '#000000',
  },
}
SCSS
$custom: #a51ea6;
$custom-light: #c46dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a51ea6",
  "rgb": {
    "r": 165,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 299.559,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.51808,
    "c": 0.21887,
    "h": 327.8
  },
  "luminance": 0.11681
}

Semantic roles & 50–950 ramp

primary
#A51EA6
secondary
#5BC65A
accent
#EC3C3D
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A51EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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