#513E87#513E87

#513E87 is a dark, moderate violet. Relative luminance 0.069; OKLCH L 42.2% C 0.117 H 292.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#513E87
RGBrgb(81, 62, 135)
HSLhsl(256, 37%, 39%)
HSVhsv(256, 54%, 53%)
CMYKcmyk(40%, 54.1%, 0%, 47.1%)
CIE-LABlab(31.68, 26.43, -38.20)
CIE-LCHlch(31.68, 46.45, 304.68°)
OKLaboklab(42.19% 0.0452 -0.1083)
OKLCHoklch(42.19% 0.117 292.7)
XYZxyz(9.4880, 6.9436, 23.7573)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513E87 #74873E
analogous
#3E4F87 #513E87 #753E87
triadic
#513E87 #87513E #3E8751
tetradic
#513E87 #873E4F #74873E #3E8775
square
#513E87 #873E4F #74873E #3E8775
split-complementary
#513E87 #87753E #4F873E
monochromatic
#1F1733 #382B5D #513E87 #6B52B0 #8F7CC3

Accessibility & contrast

On white

8.79
#513E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#513E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513E87
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513E87#FFFFFF#000000##FFFFFF
##513E871.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C8A
Deuteranopia (green-blind)
#234985
Tritanopia (blue-blind)
#434D5C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #513e87;
/* rgb */ color: rgb(81, 62, 135);
/* oklch */ color: oklch(42.2% 0.117 292.7);
Tailwind
colors: {
  custom: {
    50: '#8574aa',
    500: '#513e87',
    950: '#000000',
  },
}
SCSS
$custom: #513e87;
$custom-light: #8574aa;
$custom-dark: #000000;
JSON
{
  "hex": "#513e87",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 255.616,
    "s": 37.056,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.11734,
    "h": 292.7
  },
  "luminance": 0.06944
}

Semantic roles & 50–950 ramp

primary
#513E87
secondary
#9EAD74
accent
#CD5BAF
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #513E87

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

Preview Lab → · Contrast checker → · Palette generator →

#513E87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva