#513CA7#513CA7

#513CA7 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.3% C 0.164 H 286.7°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#513CA7
RGBrgb(81, 60, 167)
HSLhsl(252, 47%, 45%)
HSVhsv(252, 64%, 65%)
CMYKcmyk(51.5%, 64.1%, 0%, 34.5%)
CIE-LABlab(33.50, 37.35, -54.75)
CIE-LCHlch(33.50, 66.27, 304.30°)
OKLaboklab(44.26% 0.047 -0.1569)
OKLCHoklch(44.26% 0.164 286.7)
XYZxyz(11.9822, 7.7705, 37.4202)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513CA7 #92A73C
analogous
#3C5CA7 #513CA7 #873CA7
triadic
#513CA7 #A7513C #3CA751
tetradic
#513CA7 #A73C5C #92A73C #3CA787
square
#513CA7 #A73C5C #92A73C #3CA787
split-complementary
#513CA7 #A7873C #5CA73C
monochromatic
#251C4D #3B2C7A #513CA7 #705CC4 #9889D5

Accessibility & contrast

On white

8.22
#513CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#513CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513CA7
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513CA7#FFFFFF#000000##FFFFFF
##513CA71.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#31566C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513ca7;
/* rgb */ color: rgb(81, 60, 167);
/* oklch */ color: oklch(44.3% 0.164 286.7);
Tailwind
colors: {
  custom: {
    50: '#8973c2',
    500: '#513ca7',
    950: '#000000',
  },
}
SCSS
$custom: #513ca7;
$custom-light: #8973c2;
$custom-dark: #000000;
JSON
{
  "hex": "#513ca7",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 167
  },
  "hsl": {
    "h": 251.776,
    "s": 47.137,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44257,
    "c": 0.16382,
    "h": 286.7
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#513CA7
secondary
#B3BF80
accent
#D751BD
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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