#513587#513587

#513587 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.131 H 295.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#513587
RGBrgb(81, 53, 135)
HSLhsl(260, 44%, 37%)
HSVhsv(260, 61%, 53%)
CMYKcmyk(40%, 60.7%, 0%, 47.1%)
CIE-LABlab(29.52, 31.99, -41.66)
CIE-LCHlch(29.52, 52.53, 307.52°)
OKLaboklab(40.6% 0.0571 -0.1185)
OKLCHoklch(40.6% 0.131 295.7)
XYZxyz(9.0385, 6.0446, 23.6075)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513587 #6B8735
analogous
#354287 #513587 #7A3587
triadic
#513587 #875135 #358751
tetradic
#513587 #873542 #6B8735 #35877A
square
#513587 #873542 #6B8735 #35877A
split-complementary
#513587 #877A35 #428735
monochromatic
#1C122F #37245B #513587 #6B46B3 #8D70C7

Accessibility & contrast

On white

9.51
#513587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#513587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513587
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513587#FFFFFF#000000##FFFFFF
##5135871.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01468A
Deuteranopia (green-blind)
#114485
Tritanopia (blue-blind)
#444758
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #513587;
/* rgb */ color: rgb(81, 53, 135);
/* oklch */ color: oklch(40.6% 0.131 295.7);
Tailwind
colors: {
  custom: {
    50: '#866daa',
    500: '#513587',
    950: '#000000',
  },
}
SCSS
$custom: #513587;
$custom-light: #866daa;
$custom-dark: #000000;
JSON
{
  "hex": "#513587",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 135
  },
  "hsl": {
    "h": 260.488,
    "s": 43.617,
    "l": 36.863
  },
  "oklch": {
    "l": 0.406,
    "c": 0.13149,
    "h": 295.7
  },
  "luminance": 0.06045
}

Semantic roles & 50–950 ramp

primary
#513587
secondary
#97AF69
accent
#D354A8
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #513587

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

Preview Lab → · Contrast checker → · Palette generator →

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