#513EAC#513EAC

#513EAC is a dark, vivid violet. Relative luminance 0.082; OKLCH L 45.0% C 0.168 H 285.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#513EAC
RGBrgb(81, 62, 172)
HSLhsl(250, 47%, 46%)
HSVhsv(250, 64%, 67%)
CMYKcmyk(52.9%, 64%, 0%, 32.5%)
CIE-LABlab(34.34, 37.70, -56.37)
CIE-LCHlch(34.34, 67.81, 303.77°)
OKLaboklab(44.99% 0.0445 -0.1617)
OKLCHoklch(44.99% 0.168 285.4)
XYZxyz(12.5601, 8.1725, 39.9373)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EAC #99AC3E
analogous
#3E62AC #513EAC #883EAC
triadic
#513EAC #AC513E #3EAC51
tetradic
#513EAC #AC3E62 #99AC3E #3EAC88
square
#513EAC #AC3E62 #99AC3E #3EAC88
split-complementary
#513EAC #AC883E #62AC3E
monochromatic
#271E52 #3C2E7F #513EAC #7361C6 #9B8ED6

Accessibility & contrast

On white

7.97
#513EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#513EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EAC
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EAC#FFFFFF#000000##FFFFFF
##513EAC1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#2D596F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513eac;
/* rgb */ color: rgb(81, 62, 172);
/* oklch */ color: oklch(45.0% 0.168 285.4);
Tailwind
colors: {
  custom: {
    50: '#8a74c6',
    500: '#513eac',
    950: '#000000',
  },
}
SCSS
$custom: #513eac;
$custom-light: #8a74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#513eac",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 172
  },
  "hsl": {
    "h": 250.364,
    "s": 47.009,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44991,
    "c": 0.16771,
    "h": 285.4
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

primary
#513EAC
secondary
#B7C185
accent
#D751C0
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #513EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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