#513AB3#513AB3

#513AB3 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.182 H 285.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#513AB3
RGBrgb(81, 58, 179)
HSLhsl(251, 51%, 46%)
HSVhsv(251, 68%, 70%)
CMYKcmyk(54.7%, 67.6%, 0%, 29.8%)
CIE-LABlab(34.04, 42.18, -61.02)
CIE-LCHlch(34.04, 74.18, 304.65°)
OKLaboklab(44.96% 0.0475 -0.1754)
OKLCHoklch(44.96% 0.182 285.2)
XYZxyz(13.0406, 8.0294, 43.5018)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AB3 #9CB33A
analogous
#3A60B3 #513AB3 #8E3AB3
triadic
#513AB3 #B3513A #3AB351
tetradic
#513AB3 #B33A60 #9CB33A #3AB38E
square
#513AB3 #B33A60 #9CB33A #3AB38E
split-complementary
#513AB3 #B38E3A #60B33A
monochromatic
#271C57 #3C2B85 #513AB3 #745FCB #9C8DDA

Accessibility & contrast

On white

8.06
#513AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#513AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513AB3
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AB3#FFFFFF#000000##FFFFFF
##513AB31.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#004CB1
Tritanopia (blue-blind)
#265971
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513ab3;
/* rgb */ color: rgb(81, 58, 179);
/* oklch */ color: oklch(45.0% 0.182 285.2);
Tailwind
colors: {
  custom: {
    50: '#8b72cb',
    500: '#513ab3',
    950: '#000000',
  },
}
SCSS
$custom: #513ab3;
$custom-light: #8b72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#513ab3",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 179
  },
  "hsl": {
    "h": 251.405,
    "s": 51.055,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44955,
    "c": 0.18169,
    "h": 285.2
  },
  "luminance": 0.0803
}

Semantic roles & 50–950 ramp

primary
#513AB3
secondary
#B8C584
accent
#DB4DC0
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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