#513AB2#513AB2

#513AB2 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.9% C 0.180 H 285.3°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#513AB2
RGBrgb(81, 58, 178)
HSLhsl(252, 51%, 46%)
HSVhsv(252, 67%, 70%)
CMYKcmyk(54.5%, 67.4%, 0%, 30.2%)
CIE-LABlab(33.96, 41.87, -60.56)
CIE-LCHlch(33.96, 73.63, 304.66°)
OKLaboklab(44.87% 0.0477 -0.174)
OKLCHoklch(44.87% 0.18 285.3)
XYZxyz(12.9399, 7.9891, 42.9711)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AB2 #9BB23A
analogous
#3A5FB2 #513AB2 #8D3AB2
triadic
#513AB2 #B2513A #3AB251
tetradic
#513AB2 #B23A5F #9BB23A #3AB28D
square
#513AB2 #B23A5F #9BB23A #3AB28D
split-complementary
#513AB2 #B28D3A #5FB23A
monochromatic
#271C56 #3C2B84 #513AB2 #735FCB #9B8DDA

Accessibility & contrast

On white

8.08
#513AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#513AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513AB2
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AB2#FFFFFF#000000##FFFFFF
##513AB21.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#275871
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513ab2;
/* rgb */ color: rgb(81, 58, 178);
/* oklch */ color: oklch(44.9% 0.180 285.3);
Tailwind
colors: {
  custom: {
    50: '#8b72ca',
    500: '#513ab2',
    950: '#000000',
  },
}
SCSS
$custom: #513ab2;
$custom-light: #8b72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#513ab2",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 251.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44868,
    "c": 0.18044,
    "h": 285.3
  },
  "luminance": 0.0799
}

Semantic roles & 50–950 ramp

primary
#513AB2
secondary
#B8C483
accent
#DA4DBF
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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