#513786#513786

#513786 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 40.9% C 0.127 H 295.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#513786
RGBrgb(81, 55, 134)
HSLhsl(260, 42%, 37%)
HSVhsv(260, 59%, 53%)
CMYKcmyk(39.6%, 59%, 0%, 47.5%)
CIE-LABlab(29.92, 30.49, -40.40)
CIE-LCHlch(29.92, 50.62, 307.04°)
OKLaboklab(40.87% 0.0545 -0.1148)
OKLCHoklch(40.87% 0.127 295.4)
XYZxyz(9.0615, 6.2028, 23.2695)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513786 #6C8637
analogous
#374586 #513786 #793786
triadic
#513786 #865137 #378651
tetradic
#513786 #863745 #6C8637 #378679
square
#513786 #863745 #6C8637 #378679
split-complementary
#513786 #867937 #458637
monochromatic
#1D132F #37255B #513786 #6B49B1 #8E72C5

Accessibility & contrast

On white

9.37
#513786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#513786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513786
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513786#FFFFFF#000000##FFFFFF
##5137861.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4789
Deuteranopia (green-blind)
#174584
Tritanopia (blue-blind)
#444859
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #513786;
/* rgb */ color: rgb(81, 55, 134);
/* oklch */ color: oklch(40.9% 0.127 295.4);
Tailwind
colors: {
  custom: {
    50: '#866faa',
    500: '#513786',
    950: '#000000',
  },
}
SCSS
$custom: #513786;
$custom-light: #866faa;
$custom-dark: #000000;
JSON
{
  "hex": "#513786",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 259.747,
    "s": 41.799,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40867,
    "c": 0.12704,
    "h": 295.4
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#513786
secondary
#98AE6B
accent
#D256A9
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #513786

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

Preview Lab → · Contrast checker → · Palette generator →

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