#513E95#513E95

#513E95 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.2% C 0.137 H 289.5°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#513E95
RGBrgb(81, 62, 149)
HSLhsl(253, 41%, 41%)
HSVhsv(253, 58%, 58%)
CMYKcmyk(45.6%, 58.4%, 0%, 41.6%)
CIE-LABlab(32.62, 30.63, -45.28)
CIE-LCHlch(32.62, 54.67, 304.08°)
OKLaboklab(43.19% 0.0456 -0.1291)
OKLCHoklch(43.19% 0.137 289.5)
XYZxyz(10.5392, 7.3641, 29.2941)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513E95 #82953E
analogous
#3E5795 #513E95 #7D3E95
triadic
#513E95 #95513E #3E9551
tetradic
#513E95 #953E57 #82953E #3E957D
square
#513E95 #953E57 #82953E #3E957D
split-complementary
#513E95 #957D3E #57953E
monochromatic
#221A3F #3A2C6A #513E95 #6C57B9 #9282CB

Accessibility & contrast

On white

8.49
#513E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#513E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513E95
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513E95#FFFFFF#000000##FFFFFF
##513E951.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054E98
Deuteranopia (green-blind)
#0A4B93
Tritanopia (blue-blind)
#3C5163
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #513e95;
/* rgb */ color: rgb(81, 62, 149);
/* oklch */ color: oklch(43.2% 0.137 289.5);
Tailwind
colors: {
  custom: {
    50: '#8774b5',
    500: '#513e95',
    950: '#000000',
  },
}
SCSS
$custom: #513e95;
$custom-light: #8774b5;
$custom-dark: #000000;
JSON
{
  "hex": "#513e95",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 149
  },
  "hsl": {
    "h": 253.103,
    "s": 41.232,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43191,
    "c": 0.13692,
    "h": 289.5
  },
  "luminance": 0.07365
}

Semantic roles & 50–950 ramp

primary
#513E95
secondary
#A8B57A
accent
#D157B6
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513E95

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

Preview Lab → · Contrast checker → · Palette generator →

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