#513DA7#513DA7

#513DA7 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.4% C 0.163 H 286.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#513DA7
RGBrgb(81, 61, 167)
HSLhsl(251, 46%, 45%)
HSVhsv(251, 63%, 65%)
CMYKcmyk(51.5%, 63.5%, 0%, 34.5%)
CIE-LABlab(33.72, 36.75, -54.38)
CIE-LCHlch(33.72, 65.64, 304.05°)
OKLaboklab(44.42% 0.0459 -0.1559)
OKLCHoklch(44.42% 0.163 286.4)
XYZxyz(12.0351, 7.8762, 37.4378)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513DA7 #93A73D
analogous
#3D5EA7 #513DA7 #863DA7
triadic
#513DA7 #A7513D #3DA751
tetradic
#513DA7 #A73D5E #93A73D #3DA786
square
#513DA7 #A73D5E #93A73D #3DA786
split-complementary
#513DA7 #A7863D #5EA73D
monochromatic
#261C4D #3B2D7A #513DA7 #715DC4 #988AD4

Accessibility & contrast

On white

8.15
#513DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#513DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513DA7
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513DA7#FFFFFF#000000##FFFFFF
##513DA71.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #513da7;
/* rgb */ color: rgb(81, 61, 167);
/* oklch */ color: oklch(44.4% 0.163 286.4);
Tailwind
colors: {
  custom: {
    50: '#8973c2',
    500: '#513da7',
    950: '#000000',
  },
}
SCSS
$custom: #513da7;
$custom-light: #8973c2;
$custom-dark: #000000;
JSON
{
  "hex": "#513da7",
  "rgb": {
    "r": 81,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 251.321,
    "s": 46.491,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4442,
    "c": 0.1625,
    "h": 286.4
  },
  "luminance": 0.07877
}

Semantic roles & 50–950 ramp

primary
#513DA7
secondary
#B3BF81
accent
#D652BD
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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