#513BAC#513BAC

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

Color values

HEX#513BAC
RGBrgb(81, 59, 172)
HSLhsl(252, 49%, 45%)
HSVhsv(252, 66%, 67%)
CMYKcmyk(52.9%, 65.7%, 0%, 32.5%)
CIE-LABlab(33.68, 39.46, -57.45)
CIE-LCHlch(33.68, 69.70, 304.49°)
OKLaboklab(44.51% 0.0475 -0.1649)
OKLCHoklch(44.51% 0.172 286.1)
XYZxyz(12.4015, 7.8552, 39.8845)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513BAC #96AC3B
analogous
#3B5EAC #513BAC #893BAC
triadic
#513BAC #AC513B #3BAC51
tetradic
#513BAC #AC3B5E #96AC3B #3BAC89
square
#513BAC #AC3B5E #96AC3B #3BAC89
split-complementary
#513BAC #AC893B #5EAC3B
monochromatic
#261C51 #3C2B7E #513BAC #725DC7 #998AD7

Accessibility & contrast

On white

8.17
#513BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#513BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513BAC
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513BAC#FFFFFF#000000##FFFFFF
##513BAC1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#004CAA
Tritanopia (blue-blind)
#2D576E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513bac;
/* rgb */ color: rgb(81, 59, 172);
/* oklch */ color: oklch(44.5% 0.172 286.1);
Tailwind
colors: {
  custom: {
    50: '#8a72c6',
    500: '#513bac',
    950: '#000000',
  },
}
SCSS
$custom: #513bac;
$custom-light: #8a72c6;
$custom-dark: #000000;
JSON
{
  "hex": "#513bac",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 172
  },
  "hsl": {
    "h": 251.681,
    "s": 48.918,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44512,
    "c": 0.17158,
    "h": 286.1
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#513BAC
secondary
#B5C181
accent
#D84FBE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #513BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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