#513D99#513D99

#513D99 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.3% C 0.144 H 289.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#513D99
RGBrgb(81, 61, 153)
HSLhsl(253, 43%, 42%)
HSVhsv(253, 60%, 60%)
CMYKcmyk(47.1%, 60.1%, 0%, 40%)
CIE-LABlab(32.67, 32.47, -47.64)
CIE-LCHlch(32.67, 57.65, 304.27°)
OKLaboklab(43.32% 0.0467 -0.136)
OKLCHoklch(43.32% 0.144 289)
XYZxyz(10.8102, 7.3863, 30.9869)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513D99 #85993D
analogous
#3D5799 #513D99 #7F3D99
triadic
#513D99 #99513D #3D9951
tetradic
#513D99 #993D57 #85993D #3D997F
square
#513D99 #993D57 #85993D #3D997F
split-complementary
#513D99 #997F3D #57993D
monochromatic
#231A41 #3A2C6D #513D99 #6D57BC #9383CE

Accessibility & contrast

On white

8.48
#513D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#513D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513D99
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513D99#FFFFFF#000000##FFFFFF
##513D991.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#3A5265
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #513d99;
/* rgb */ color: rgb(81, 61, 153);
/* oklch */ color: oklch(43.3% 0.144 289.0);
Tailwind
colors: {
  custom: {
    50: '#8773b8',
    500: '#513d99',
    950: '#000000',
  },
}
SCSS
$custom: #513d99;
$custom-light: #8773b8;
$custom-dark: #000000;
JSON
{
  "hex": "#513d99",
  "rgb": {
    "r": 81,
    "g": 61,
    "b": 153
  },
  "hsl": {
    "h": 253.043,
    "s": 42.991,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43317,
    "c": 0.14384,
    "h": 289
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#513D99
secondary
#AAB87A
accent
#D355B7
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513D99

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

Preview Lab → · Contrast checker → · Palette generator →

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