#513AA2#513AA2

#513AA2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.5% C 0.160 H 288.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#513AA2
RGBrgb(81, 58, 162)
HSLhsl(253, 47%, 43%)
HSVhsv(253, 64%, 64%)
CMYKcmyk(50%, 64.2%, 0%, 36.5%)
CIE-LABlab(32.66, 37.01, -53.10)
CIE-LCHlch(32.66, 64.72, 304.88°)
OKLaboklab(43.53% 0.0495 -0.1521)
OKLCHoklch(43.53% 0.16 288)
XYZxyz(11.4261, 7.3836, 34.9985)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AA2 #8BA23A
analogous
#3A57A2 #513AA2 #853AA2
triadic
#513AA2 #A2513A #3AA251
tetradic
#513AA2 #A23A57 #8BA23A #3AA285
square
#513AA2 #A23A57 #8BA23A #3AA285
split-complementary
#513AA2 #A2853A #57A23A
monochromatic
#241A48 #3A2A75 #513AA2 #6E57C3 #9584D3

Accessibility & contrast

On white

8.48
#513AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#513AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513AA2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AA2#FFFFFF#000000##FFFFFF
##513AA21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#355368
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #513aa2;
/* rgb */ color: rgb(81, 58, 162);
/* oklch */ color: oklch(43.5% 0.160 288.0);
Tailwind
colors: {
  custom: {
    50: '#8971be',
    500: '#513aa2',
    950: '#000000',
  },
}
SCSS
$custom: #513aa2;
$custom-light: #8971be;
$custom-dark: #000000;
JSON
{
  "hex": "#513aa2",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 253.269,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43527,
    "c": 0.15996,
    "h": 288
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

primary
#513AA2
secondary
#AEBD7B
accent
#D751B9
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513AA2

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

Preview Lab → · Contrast checker → · Palette generator →

#513AA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva