#513686#513686

#513686 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.7% C 0.129 H 295.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#513686
RGBrgb(81, 54, 134)
HSLhsl(260, 43%, 37%)
HSVhsv(260, 60%, 53%)
CMYKcmyk(39.6%, 59.7%, 0%, 47.5%)
CIE-LABlab(29.69, 31.10, -40.78)
CIE-LCHlch(29.69, 51.29, 307.33°)
OKLaboklab(40.7% 0.0558 -0.1159)
OKLCHoklch(40.7% 0.129 295.7)
XYZxyz(9.0145, 6.1087, 23.2538)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513686 #6B8636
analogous
#364386 #513686 #793686
triadic
#513686 #865136 #368651
tetradic
#513686 #863643 #6B8636 #368679
square
#513686 #863643 #6B8636 #368679
split-complementary
#513686 #867936 #438636
monochromatic
#1C132F #37245A #513686 #6B48B2 #8D71C6

Accessibility & contrast

On white

9.45
#513686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#513686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513686
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513686#FFFFFF#000000##FFFFFF
##5136861.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084689
Deuteranopia (green-blind)
#154584
Tritanopia (blue-blind)
#444758
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #513686;
/* rgb */ color: rgb(81, 54, 134);
/* oklch */ color: oklch(40.7% 0.129 295.7);
Tailwind
colors: {
  custom: {
    50: '#866eaa',
    500: '#513686',
    950: '#000000',
  },
}
SCSS
$custom: #513686;
$custom-light: #866eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#513686",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 134
  },
  "hsl": {
    "h": 260.25,
    "s": 42.553,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40695,
    "c": 0.1286,
    "h": 295.7
  },
  "luminance": 0.06109
}

Semantic roles & 50–950 ramp

primary
#513686
secondary
#97AE6A
accent
#D255A8
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #513686

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

Preview Lab → · Contrast checker → · Palette generator →

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