#A5319E#A5319E

#A5319E is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.8% C 0.194 H 330.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#A5319E
RGBrgb(165, 49, 158)
HSLhsl(304, 54%, 42%)
HSVhsv(304, 70%, 65%)
CMYKcmyk(0%, 70.3%, 4.2%, 35.3%)
CIE-LABlab(42.26, 59.51, -34.69)
CIE-LCHlch(42.26, 68.88, 329.76°)
OKLaboklab(52.77% 0.169 -0.0956)
OKLCHoklch(52.77% 0.194 330.5)
XYZxyz(22.7868, 12.6663, 33.5858)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5319E #31A538
analogous
#7231A5 #A5319E #A53164
triadic
#A5319E #9EA531 #319EA5
tetradic
#A5319E #A57231 #31A538 #3164A5
square
#A5319E #A57231 #31A538 #3164A5
split-complementary
#A5319E #64A531 #31A572
monochromatic
#471544 #762371 #A5319E #C94AC2 #D779D2

Accessibility & contrast

On white

5.94
#A5319E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#A5319E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5319E
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5319E#FFFFFF#000000##FFFFFF
##A5319E1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265AA1
Deuteranopia (green-blind)
#53699B
Tritanopia (blue-blind)
#AB3F64
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a5319e;
/* rgb */ color: rgb(165, 49, 158);
/* oklch */ color: oklch(52.8% 0.194 330.5);
Tailwind
colors: {
  custom: {
    50: '#c374bb',
    500: '#a5319e',
    950: '#000000',
  },
}
SCSS
$custom: #a5319e;
$custom-light: #c374bb;
$custom-dark: #000000;
JSON
{
  "hex": "#a5319e",
  "rgb": {
    "r": 165,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 303.621,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5277,
    "c": 0.19415,
    "h": 330.5
  },
  "luminance": 0.12665
}

Semantic roles & 50–950 ramp

primary
#A5319E
secondary
#72C077
accent
#DE534A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A5319E

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

Preview Lab → · Contrast checker → · Palette generator →

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