#513797#513797

#513797 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.150 H 291.1°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#513797
RGBrgb(81, 55, 151)
HSLhsl(256, 47%, 40%)
HSVhsv(256, 64%, 59%)
CMYKcmyk(46.4%, 63.6%, 0%, 40.8%)
CIE-LABlab(31.15, 35.48, -48.88)
CIE-LCHlch(31.15, 60.40, 305.98°)
OKLaboklab(42.16% 0.0538 -0.1397)
OKLCHoklch(42.16% 0.15 291.1)
XYZxyz(10.3439, 6.7157, 30.0234)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513797 #7D9737
analogous
#374D97 #513797 #813797
triadic
#513797 #975137 #379751
tetradic
#513797 #97374D #7D9737 #379781
square
#513797 #97374D #7D9737 #379781
split-complementary
#513797 #978137 #4D9737
monochromatic
#21163D #39276A #513797 #6C4DBE #917ACF

Accessibility & contrast

On white

8.96
#513797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#513797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513797
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513797#FFFFFF#000000##FFFFFF
##5137971.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#3C4D62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #513797;
/* rgb */ color: rgb(81, 55, 151);
/* oklch */ color: oklch(42.2% 0.150 291.1);
Tailwind
colors: {
  custom: {
    50: '#886fb6',
    500: '#513797',
    950: '#000000',
  },
}
SCSS
$custom: #513797;
$custom-light: #886fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#513797",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 256.25,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4216,
    "c": 0.1497,
    "h": 291.1
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#513797
secondary
#A5B872
accent
#D652B2
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #513797

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

Preview Lab → · Contrast checker → · Palette generator →

#513797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva