#513EA4#513EA4

#513EA4 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.3% C 0.157 H 286.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#513EA4
RGBrgb(81, 62, 164)
HSLhsl(251, 45%, 44%)
HSVhsv(251, 62%, 64%)
CMYKcmyk(50.6%, 62.2%, 0%, 35.7%)
CIE-LABlab(33.72, 35.23, -52.59)
CIE-LCHlch(33.72, 63.30, 303.82°)
OKLaboklab(44.34% 0.0451 -0.1506)
OKLCHoklch(44.34% 0.157 286.7)
XYZxyz(11.8148, 7.8744, 36.0121)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EA4 #91A43E
analogous
#3E5EA4 #513EA4 #843EA4
triadic
#513EA4 #A4513E #3EA451
tetradic
#513EA4 #A43E5E #91A43E #3EA484
square
#513EA4 #A43E5E #91A43E #3EA484
split-complementary
#513EA4 #A4843E #5EA43E
monochromatic
#251C4B #3B2D78 #513EA4 #705DC2 #978AD3

Accessibility & contrast

On white

8.16
#513EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#513EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EA4
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EA4#FFFFFF#000000##FFFFFF
##513EA41.008.162.588.16
#FFFFFF8.161.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#33566B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513ea4;
/* rgb */ color: rgb(81, 62, 164);
/* oklch */ color: oklch(44.3% 0.157 286.7);
Tailwind
colors: {
  custom: {
    50: '#8974c0',
    500: '#513ea4',
    950: '#000000',
  },
}
SCSS
$custom: #513ea4;
$custom-light: #8974c0;
$custom-dark: #000000;
JSON
{
  "hex": "#513ea4",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 164
  },
  "hsl": {
    "h": 251.176,
    "s": 45.133,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44344,
    "c": 0.1572,
    "h": 286.7
  },
  "luminance": 0.07875
}

Semantic roles & 50–950 ramp

primary
#513EA4
secondary
#B2BD81
accent
#D553BD
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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