#513AAA#513AAA

#513AAA is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.2% C 0.170 H 286.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#513AAA
RGBrgb(81, 58, 170)
HSLhsl(252, 49%, 45%)
HSVhsv(252, 66%, 67%)
CMYKcmyk(52.4%, 65.9%, 0%, 33.3%)
CIE-LABlab(33.30, 39.44, -56.87)
CIE-LCHlch(33.30, 69.20, 304.74°)
OKLaboklab(44.19% 0.0487 -0.1632)
OKLCHoklch(44.19% 0.17 286.6)
XYZxyz(12.1599, 7.6771, 38.8635)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AAA #93AA3A
analogous
#3A5BAA #513AAA #893AAA
triadic
#513AAA #AA513A #3AAA51
tetradic
#513AAA #AA3A5B #93AA3A #3AAA89
square
#513AAA #AA3A5B #93AA3A #3AAA89
split-complementary
#513AAA #AA893A #5BAA3A
monochromatic
#261B4F #3B2A7C #513AAA #715AC7 #9888D6

Accessibility & contrast

On white

8.28
#513AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#513AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513AAA
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AAA#FFFFFF#000000##FFFFFF
##513AAA1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#2F566D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #513aaa;
/* rgb */ color: rgb(81, 58, 170);
/* oklch */ color: oklch(44.2% 0.170 286.6);
Tailwind
colors: {
  custom: {
    50: '#8a72c4',
    500: '#513aaa',
    950: '#000000',
  },
}
SCSS
$custom: #513aaa;
$custom-light: #8a72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#513aaa",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 252.321,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44188,
    "c": 0.17029,
    "h": 286.6
  },
  "luminance": 0.07678
}

Semantic roles & 50–950 ramp

primary
#513AAA
secondary
#B3C17F
accent
#D94FBC
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #513AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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