#513DA8#513DA8

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

Color values

HEX#513DA8
RGBrgb(81, 61, 168)
HSLhsl(251, 47%, 45%)
HSVhsv(251, 64%, 66%)
CMYKcmyk(51.8%, 63.7%, 0%, 34.1%)
CIE-LABlab(33.80, 37.06, -54.86)
CIE-LCHlch(33.80, 66.20, 304.04°)
OKLaboklab(44.5% 0.0459 -0.1573)
OKLCHoklch(44.5% 0.164 286.3)
XYZxyz(12.1279, 7.9134, 37.9266)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513DA8 #94A83D
analogous
#3D5EA8 #513DA8 #873DA8
triadic
#513DA8 #A8513D #3DA851
tetradic
#513DA8 #A83D5E #94A83D #3DA887
square
#513DA8 #A83D5E #94A83D #3DA887
split-complementary
#513DA8 #A8873D #5EA83D
monochromatic
#261C4E #3B2D7B #513DA8 #715EC4 #988BD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##513DA8#FFFFFF#000000##FFFFFF
##513DA81.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)
#0052AB
Deuteranopia (green-blind)
#004CA6
Tritanopia (blue-blind)
#30576D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513da8;
/* rgb */ color: rgb(81, 61, 168);
/* oklch */ color: oklch(44.5% 0.164 286.3);
Tailwind
colors: {
  custom: {
    50: '#8a73c3',
    500: '#513da8',
    950: '#000000',
  },
}
SCSS
$custom: #513da8;
$custom-light: #8a73c3;
$custom-dark: #000000;
JSON
{
  "hex": "#513da8",
  "rgb": {
    "r": 81,
    "g": 61,
    "b": 168
  },
  "hsl": {
    "h": 251.215,
    "s": 46.725,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44501,
    "c": 0.16381,
    "h": 286.3
  },
  "luminance": 0.07914
}

Semantic roles & 50–950 ramp

primary
#513DA8
secondary
#B4BF81
accent
#D651BE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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