#513DAB#513DAB

#513DAB is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.7% C 0.168 H 285.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#513DAB
RGBrgb(81, 61, 171)
HSLhsl(251, 47%, 45%)
HSVhsv(251, 64%, 67%)
CMYKcmyk(52.6%, 64.3%, 0%, 32.9%)
CIE-LABlab(34.04, 37.98, -56.27)
CIE-LCHlch(34.04, 67.89, 304.02°)
OKLaboklab(44.75% 0.0456 -0.1614)
OKLCHoklch(44.75% 0.168 285.8)
XYZxyz(12.4106, 8.0265, 39.4155)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513DAB #97AB3D
analogous
#3D60AB #513DAB #883DAB
triadic
#513DAB #AB513D #3DAB51
tetradic
#513DAB #AB3D60 #97AB3D #3DAB88
square
#513DAB #AB3D60 #97AB3D #3DAB88
split-complementary
#513DAB #AB883D #60AB3D
monochromatic
#261D51 #3C2D7E #513DAB #725FC6 #9A8CD6

Accessibility & contrast

On white

8.06
#513DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#513DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513DAB
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513DAB#FFFFFF#000000##FFFFFF
##513DAB1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#2E586E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513dab;
/* rgb */ color: rgb(81, 61, 171);
/* oklch */ color: oklch(44.7% 0.168 285.8);
Tailwind
colors: {
  custom: {
    50: '#8a74c5',
    500: '#513dab',
    950: '#000000',
  },
}
SCSS
$custom: #513dab;
$custom-light: #8a74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#513dab",
  "rgb": {
    "r": 81,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 250.909,
    "s": 47.414,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44747,
    "c": 0.16771,
    "h": 285.8
  },
  "luminance": 0.08027
}

Semantic roles & 50–950 ramp

primary
#513DAB
secondary
#B6C183
accent
#D751BF
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #513DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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