#513AA5#513AA5

#513AA5 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.8% C 0.164 H 287.5°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#513AA5
RGBrgb(81, 58, 165)
HSLhsl(253, 48%, 44%)
HSVhsv(253, 65%, 65%)
CMYKcmyk(50.9%, 64.8%, 0%, 35.3%)
CIE-LABlab(32.90, 37.92, -54.52)
CIE-LCHlch(32.90, 66.41, 304.82°)
OKLaboklab(43.77% 0.0493 -0.1563)
OKLCHoklch(43.77% 0.164 287.5)
XYZxyz(11.6959, 7.4915, 36.4197)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AA5 #8EA53A
analogous
#3A58A5 #513AA5 #863AA5
triadic
#513AA5 #A5513A #3AA551
tetradic
#513AA5 #A53A58 #8EA53A #3AA586
square
#513AA5 #A53A58 #8EA53A #3AA586
split-complementary
#513AA5 #A5863A #58A53A
monochromatic
#251A4A #3B2A78 #513AA5 #6F58C4 #9685D4

Accessibility & contrast

On white

8.41
#513AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#513AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513AA5
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AA5#FFFFFF#000000##FFFFFF
##513AA51.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#33546A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #513aa5;
/* rgb */ color: rgb(81, 58, 165);
/* oklch */ color: oklch(43.8% 0.164 287.5);
Tailwind
colors: {
  custom: {
    50: '#8971c1',
    500: '#513aa5',
    950: '#000000',
  },
}
SCSS
$custom: #513aa5;
$custom-light: #8971c1;
$custom-dark: #000000;
JSON
{
  "hex": "#513aa5",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 252.897,
    "s": 47.982,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43773,
    "c": 0.16386,
    "h": 287.5
  },
  "luminance": 0.07492
}

Semantic roles & 50–950 ramp

primary
#513AA5
secondary
#B0BE7D
accent
#D850BA
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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