#513DAE#513DAE

#513DAE is a dark, vivid violet. Relative luminance 0.081; OKLCH L 45.0% C 0.172 H 285.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#513DAE
RGBrgb(81, 61, 174)
HSLhsl(251, 48%, 46%)
HSVhsv(251, 65%, 68%)
CMYKcmyk(53.4%, 64.9%, 0%, 31.8%)
CIE-LABlab(34.28, 38.91, -57.67)
CIE-LCHlch(34.28, 69.56, 304.01°)
OKLaboklab(45% 0.0453 -0.1655)
OKLCHoklch(45% 0.172 285.3)
XYZxyz(12.6998, 8.1421, 40.9386)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513DAE #9AAE3D
analogous
#3D62AE #513DAE #893DAE
triadic
#513DAE #AE513D #3DAE51
tetradic
#513DAE #AE3D62 #9AAE3D #3DAE89
square
#513DAE #AE3D62 #9AAE3D #3DAE89
split-complementary
#513DAE #AE893D #62AE3D
monochromatic
#271D53 #3C2D81 #513DAE #7361C8 #9B8ED7

Accessibility & contrast

On white

7.99
#513DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#513DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513DAE
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513DAE#FFFFFF#000000##FFFFFF
##513DAE1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#2B5970
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513dae;
/* rgb */ color: rgb(81, 61, 174);
/* oklch */ color: oklch(45.0% 0.172 285.3);
Tailwind
colors: {
  custom: {
    50: '#8a74c7',
    500: '#513dae',
    950: '#000000',
  },
}
SCSS
$custom: #513dae;
$custom-light: #8a74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#513dae",
  "rgb": {
    "r": 81,
    "g": 61,
    "b": 174
  },
  "hsl": {
    "h": 250.619,
    "s": 48.085,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44995,
    "c": 0.1716,
    "h": 285.3
  },
  "luminance": 0.08143
}

Semantic roles & 50–950 ramp

primary
#513DAE
secondary
#B7C285
accent
#D850C0
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #513DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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