#513AAF#513AAF

#513AAF is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.6% C 0.177 H 285.8°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#513AAF
RGBrgb(81, 58, 175)
HSLhsl(252, 50%, 46%)
HSVhsv(252, 67%, 69%)
CMYKcmyk(53.7%, 66.9%, 0%, 31.4%)
CIE-LABlab(33.71, 40.96, -59.19)
CIE-LCHlch(33.71, 71.98, 304.68°)
OKLaboklab(44.61% 0.0481 -0.17)
OKLCHoklch(44.61% 0.177 285.8)
XYZxyz(12.6419, 7.8699, 41.4020)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AAF #98AF3A
analogous
#3A5DAF #513AAF #8B3AAF
triadic
#513AAF #AF513A #3AAF51
tetradic
#513AAF #AF3A5D #98AF3A #3AAF8B
square
#513AAF #AF3A5D #98AF3A #3AAF8B
split-complementary
#513AAF #AF8B3A #5DAF3A
monochromatic
#261C53 #3C2B81 #513AAF #725DC9 #9A8BD9

Accessibility & contrast

On white

8.16
#513AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513AAF
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AAF#FFFFFF#000000##FFFFFF
##513AAF1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#2A576F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513aaf;
/* rgb */ color: rgb(81, 58, 175);
/* oklch */ color: oklch(44.6% 0.177 285.8);
Tailwind
colors: {
  custom: {
    50: '#8b72c8',
    500: '#513aaf',
    950: '#000000',
  },
}
SCSS
$custom: #513aaf;
$custom-light: #8b72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#513aaf",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 251.795,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44611,
    "c": 0.17665,
    "h": 285.8
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#513AAF
secondary
#B6C382
accent
#DA4EBE
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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