#A51793#A51793

#A51793 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.211 H 334.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#A51793
RGBrgb(165, 23, 147)
HSLhsl(308, 76%, 37%)
HSVhsv(308, 86%, 65%)
CMYKcmyk(0%, 86.1%, 10.9%, 35.3%)
CIE-LABlab(39.11, 65.18, -33.01)
CIE-LCHlch(39.11, 73.06, 333.14°)
OKLaboklab(50.32% 0.1901 -0.0905)
OKLCHoklch(50.32% 0.211 334.5)
XYZxyz(21.0902, 10.7207, 28.5567)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51793 #17A529
analogous
#7017A5 #A51793 #A5174C
triadic
#A51793 #93A517 #1793A5
tetradic
#A51793 #A57017 #17A529 #174CA5
square
#A51793 #A57017 #17A529 #174CA5
split-complementary
#A51793 #4CA517 #17A570
monochromatic
#3A0833 #6F1063 #A51793 #DB1EC3 #E750D3

Accessibility & contrast

On white

6.68
#A51793 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#A51793 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51793
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51793#FFFFFF#000000##FFFFFF
##A517931.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134F96
Deuteranopia (green-blind)
#4F6390
Tritanopia (blue-blind)
#AD2857
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a51793;
/* rgb */ color: rgb(165, 23, 147);
/* oklch */ color: oklch(50.3% 0.211 334.5);
Tailwind
colors: {
  custom: {
    50: '#c46ab3',
    500: '#a51793',
    950: '#000000',
  },
}
SCSS
$custom: #a51793;
$custom-light: #c46ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#a51793",
  "rgb": {
    "r": 165,
    "g": 23,
    "b": 147
  },
  "hsl": {
    "h": 307.606,
    "s": 75.532,
    "l": 36.863
  },
  "oklch": {
    "l": 0.50324,
    "c": 0.21055,
    "h": 334.5
  },
  "luminance": 0.10719
}

Semantic roles & 50–950 ramp

primary
#A51793
secondary
#4FC95E
accent
#F24E36
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #A51793

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

Preview Lab → · Contrast checker → · Palette generator →

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