#513A97#513A97

#513A97 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.7% C 0.145 H 290.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#513A97
RGBrgb(81, 58, 151)
HSLhsl(255, 44%, 41%)
HSVhsv(255, 62%, 59%)
CMYKcmyk(46.4%, 61.6%, 0%, 40.8%)
CIE-LABlab(31.83, 33.69, -47.78)
CIE-LCHlch(31.83, 58.46, 305.18°)
OKLaboklab(42.65% 0.0503 -0.1365)
OKLCHoklch(42.65% 0.145 290.2)
XYZxyz(10.4907, 7.0094, 30.0724)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513A97 #80973A
analogous
#3A5197 #513A97 #7F3A97
triadic
#513A97 #97513A #3A9751
tetradic
#513A97 #973A51 #80973A #3A977F
square
#513A97 #973A51 #80973A #3A977F
split-complementary
#513A97 #977F3A #51973A
monochromatic
#22183F #39296B #513A97 #6C52BC #927ECD

Accessibility & contrast

On white

8.74
#513A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#513A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513A97
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513A97#FFFFFF#000000##FFFFFF
##513A971.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#3C4F63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #513a97;
/* rgb */ color: rgb(81, 58, 151);
/* oklch */ color: oklch(42.7% 0.145 290.2);
Tailwind
colors: {
  custom: {
    50: '#8771b6',
    500: '#513a97',
    950: '#000000',
  },
}
SCSS
$custom: #513a97;
$custom-light: #8771b6;
$custom-dark: #000000;
JSON
{
  "hex": "#513a97",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 254.839,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42654,
    "c": 0.14545,
    "h": 290.2
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#513A97
secondary
#A7B776
accent
#D454B4
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513A97

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

Preview Lab → · Contrast checker → · Palette generator →

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