#513EAA#513EAA

#513EAA is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.8% C 0.165 H 285.7°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#513EAA
RGBrgb(81, 62, 170)
HSLhsl(251, 47%, 45%)
HSVhsv(251, 64%, 67%)
CMYKcmyk(52.4%, 63.5%, 0%, 33.3%)
CIE-LABlab(34.18, 37.08, -55.43)
CIE-LCHlch(34.18, 66.69, 303.78°)
OKLaboklab(44.83% 0.0447 -0.1589)
OKLCHoklch(44.83% 0.165 285.7)
XYZxyz(12.3695, 8.0962, 38.9334)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EAA #97AA3E
analogous
#3E61AA #513EAA #873EAA
triadic
#513EAA #AA513E #3EAA51
tetradic
#513EAA #AA3E61 #97AA3E #3EAA87
square
#513EAA #AA3E61 #97AA3E #3EAA87
split-complementary
#513EAA #AA873E #61AA3E
monochromatic
#261D50 #3C2E7D #513EAA #7260C5 #9A8DD5

Accessibility & contrast

On white

8.02
#513EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#513EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EAA
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EAA#FFFFFF#000000##FFFFFF
##513EAA1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #513eaa;
/* rgb */ color: rgb(81, 62, 170);
/* oklch */ color: oklch(44.8% 0.165 285.7);
Tailwind
colors: {
  custom: {
    50: '#8a74c4',
    500: '#513eaa',
    950: '#000000',
  },
}
SCSS
$custom: #513eaa;
$custom-light: #8a74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#513eaa",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 170
  },
  "hsl": {
    "h": 250.556,
    "s": 46.552,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44827,
    "c": 0.1651,
    "h": 285.7
  },
  "luminance": 0.08097
}

Semantic roles & 50–950 ramp

primary
#513EAA
secondary
#B6C084
accent
#D652BF
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #513EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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