#513486#513486

#513486 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.132 H 296.3°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#513486
RGBrgb(81, 52, 134)
HSLhsl(261, 44%, 36%)
HSVhsv(261, 61%, 53%)
CMYKcmyk(39.6%, 61.2%, 0%, 47.5%)
CIE-LABlab(29.23, 32.31, -41.52)
CIE-LCHlch(29.23, 52.61, 307.89°)
OKLaboklab(40.36% 0.0584 -0.118)
OKLCHoklch(40.36% 0.132 296.3)
XYZxyz(8.9233, 5.9264, 23.2234)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513486 #698634
analogous
#344086 #513486 #7A3486
triadic
#513486 #865134 #348651
tetradic
#513486 #863440 #698634 #34867A
square
#513486 #863440 #698634 #34867A
split-complementary
#513486 #867A34 #408634
monochromatic
#1C122E #36235A #513486 #6C45B2 #8D6EC7

Accessibility & contrast

On white

9.61
#513486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#513486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513486
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513486#FFFFFF#000000##FFFFFF
##5134861.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#114484
Tritanopia (blue-blind)
#444658
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #513486;
/* rgb */ color: rgb(81, 52, 134);
/* oklch */ color: oklch(40.4% 0.132 296.3);
Tailwind
colors: {
  custom: {
    50: '#866daa',
    500: '#513486',
    950: '#000000',
  },
}
SCSS
$custom: #513486;
$custom-light: #866daa;
$custom-dark: #000000;
JSON
{
  "hex": "#513486",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 134
  },
  "hsl": {
    "h": 261.22,
    "s": 44.086,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40359,
    "c": 0.13169,
    "h": 296.3
  },
  "luminance": 0.05927
}

Semantic roles & 50–950 ramp

primary
#513486
secondary
#95AF67
accent
#D454A7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #513486

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

Preview Lab → · Contrast checker → · Palette generator →

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