#513EA6#513EA6

#513EA6 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.5% C 0.160 H 286.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#513EA6
RGBrgb(81, 62, 166)
HSLhsl(251, 46%, 45%)
HSVhsv(251, 63%, 65%)
CMYKcmyk(51.2%, 62.7%, 0%, 34.9%)
CIE-LABlab(33.87, 35.84, -53.54)
CIE-LCHlch(33.87, 64.43, 303.80°)
OKLaboklab(44.5% 0.045 -0.1534)
OKLCHoklch(44.5% 0.16 286.3)
XYZxyz(11.9969, 7.9472, 36.9708)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EA6 #93A63E
analogous
#3E5FA6 #513EA6 #853EA6
triadic
#513EA6 #A6513E #3EA651
tetradic
#513EA6 #A63E5F #93A63E #3EA685
square
#513EA6 #A63E5F #93A63E #3EA685
split-complementary
#513EA6 #A6853E #5FA63E
monochromatic
#261D4D #3B2D79 #513EA6 #715EC3 #988BD4

Accessibility & contrast

On white

8.11
#513EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#513EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EA6
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EA6#FFFFFF#000000##FFFFFF
##513EA61.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#32576C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513ea6;
/* rgb */ color: rgb(81, 62, 166);
/* oklch */ color: oklch(44.5% 0.160 286.3);
Tailwind
colors: {
  custom: {
    50: '#8974c1',
    500: '#513ea6',
    950: '#000000',
  },
}
SCSS
$custom: #513ea6;
$custom-light: #8974c1;
$custom-dark: #000000;
JSON
{
  "hex": "#513ea6",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 250.962,
    "s": 45.614,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44504,
    "c": 0.15984,
    "h": 286.3
  },
  "luminance": 0.07948
}

Semantic roles & 50–950 ramp

primary
#513EA6
secondary
#B3BE82
accent
#D553BD
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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