#513EA5#513EA5

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

Color values

HEX#513EA5
RGBrgb(81, 62, 165)
HSLhsl(251, 45%, 45%)
HSVhsv(251, 62%, 65%)
CMYKcmyk(50.9%, 62.4%, 0%, 35.3%)
CIE-LABlab(33.80, 35.53, -53.07)
CIE-LCHlch(33.80, 63.86, 303.81°)
OKLaboklab(44.42% 0.045 -0.152)
OKLCHoklch(44.42% 0.159 286.5)
XYZxyz(11.9055, 7.9106, 36.4896)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EA5 #92A53E
analogous
#3E5FA5 #513EA5 #853EA5
triadic
#513EA5 #A5513E #3EA551
tetradic
#513EA5 #A53E5F #92A53E #3EA585
square
#513EA5 #A53E5F #92A53E #3EA585
split-complementary
#513EA5 #A5853E #5FA53E
monochromatic
#251D4C #3B2D79 #513EA5 #705EC2 #988AD3

Accessibility & contrast

On white

8.13
#513EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513EA5
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EA5#FFFFFF#000000##FFFFFF
##513EA51.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#32566B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513ea5;
/* rgb */ color: rgb(81, 62, 165);
/* oklch */ color: oklch(44.4% 0.159 286.5);
Tailwind
colors: {
  custom: {
    50: '#8974c0',
    500: '#513ea5',
    950: '#000000',
  },
}
SCSS
$custom: #513ea5;
$custom-light: #8974c0;
$custom-dark: #000000;
JSON
{
  "hex": "#513ea5",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 251.068,
    "s": 45.374,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44424,
    "c": 0.15852,
    "h": 286.5
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#513EA5
secondary
#B3BE81
accent
#D553BD
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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