#513E9D#513E9D

#513E9D is a dark, vivid violet. Relative luminance 0.076; OKLCH L 43.8% C 0.148 H 287.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#513E9D
RGBrgb(81, 62, 157)
HSLhsl(252, 43%, 43%)
HSVhsv(252, 61%, 62%)
CMYKcmyk(48.4%, 60.5%, 0%, 38.4%)
CIE-LABlab(33.20, 33.08, -49.21)
CIE-LCHlch(33.20, 59.30, 303.90°)
OKLaboklab(43.8% 0.0454 -0.1407)
OKLCHoklch(43.8% 0.148 287.9)
XYZxyz(11.2000, 7.6284, 32.7741)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513E9D #8A9D3E
analogous
#3E5A9D #513E9D #803E9D
triadic
#513E9D #9D513E #3E9D51
tetradic
#513E9D #9D3E5A #8A9D3E #3E9D80
square
#513E9D #9D3E5A #8A9D3E #3E9D80
split-complementary
#513E9D #9D803E #5A9D3E
monochromatic
#241B45 #3A2D71 #513E9D #6E5ABE #9586CF

Accessibility & contrast

On white

8.31
#513E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#513E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513E9D
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513E9D#FFFFFF#000000##FFFFFF
##513E9D1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#385467
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #513e9d;
/* rgb */ color: rgb(81, 62, 157);
/* oklch */ color: oklch(43.8% 0.148 287.9);
Tailwind
colors: {
  custom: {
    50: '#8874bb',
    500: '#513e9d',
    950: '#000000',
  },
}
SCSS
$custom: #513e9d;
$custom-light: #8874bb;
$custom-dark: #000000;
JSON
{
  "hex": "#513e9d",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 157
  },
  "hsl": {
    "h": 252,
    "s": 43.379,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43796,
    "c": 0.14782,
    "h": 287.9
  },
  "luminance": 0.07629
}

Semantic roles & 50–950 ramp

primary
#513E9D
secondary
#AEBA7D
accent
#D355BA
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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