#513CA5#513CA5

#513CA5 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.1% C 0.161 H 287.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#513CA5
RGBrgb(81, 60, 165)
HSLhsl(252, 47%, 44%)
HSVhsv(252, 64%, 65%)
CMYKcmyk(50.9%, 63.6%, 0%, 35.3%)
CIE-LABlab(33.34, 36.73, -53.80)
CIE-LCHlch(33.34, 65.14, 304.32°)
OKLaboklab(44.1% 0.0472 -0.1541)
OKLCHoklch(44.1% 0.161 287)
XYZxyz(11.7987, 7.6971, 36.4540)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513CA5 #90A53C
analogous
#3C5CA5 #513CA5 #863CA5
triadic
#513CA5 #A5513C #3CA551
tetradic
#513CA5 #A53C5C #90A53C #3CA586
square
#513CA5 #A53C5C #90A53C #3CA586
split-complementary
#513CA5 #A5863C #5CA53C
monochromatic
#251B4B #3B2C78 #513CA5 #705BC3 #9788D4

Accessibility & contrast

On white

8.27
#513CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#513CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513CA5
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513CA5#FFFFFF#000000##FFFFFF
##513CA51.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#33556B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #513ca5;
/* rgb */ color: rgb(81, 60, 165);
/* oklch */ color: oklch(44.1% 0.161 287.0);
Tailwind
colors: {
  custom: {
    50: '#8973c0',
    500: '#513ca5',
    950: '#000000',
  },
}
SCSS
$custom: #513ca5;
$custom-light: #8973c0;
$custom-dark: #000000;
JSON
{
  "hex": "#513ca5",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 165
  },
  "hsl": {
    "h": 252,
    "s": 46.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44095,
    "c": 0.1612,
    "h": 287
  },
  "luminance": 0.07698
}

Semantic roles & 50–950 ramp

primary
#513CA5
secondary
#B1BE7F
accent
#D651BC
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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