#513EAD#513EAD

#513EAD is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.1% C 0.169 H 285.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#513EAD
RGBrgb(81, 62, 173)
HSLhsl(250, 47%, 46%)
HSVhsv(250, 64%, 68%)
CMYKcmyk(53.2%, 64.2%, 0%, 32.2%)
CIE-LABlab(34.42, 38.00, -56.84)
CIE-LCHlch(34.42, 68.38, 303.77°)
OKLaboklab(45.07% 0.0444 -0.1631)
OKLCHoklch(45.07% 0.169 285.2)
XYZxyz(12.6565, 8.2110, 40.4450)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EAD #9AAD3E
analogous
#3E62AD #513EAD #883EAD
triadic
#513EAD #AD513E #3EAD51
tetradic
#513EAD #AD3E62 #9AAD3E #3EAD88
square
#513EAD #AD3E62 #9AAD3E #3EAD88
split-complementary
#513EAD #AD883E #62AD3E
monochromatic
#271E53 #3C2E80 #513EAD #7362C7 #9B8FD7

Accessibility & contrast

On white

7.95
#513EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#513EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EAD
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EAD#FFFFFF#000000##FFFFFF
##513EAD1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#004EAB
Tritanopia (blue-blind)
#2C5970
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513ead;
/* rgb */ color: rgb(81, 62, 173);
/* oklch */ color: oklch(45.1% 0.169 285.2);
Tailwind
colors: {
  custom: {
    50: '#8a74c6',
    500: '#513ead',
    950: '#000000',
  },
}
SCSS
$custom: #513ead;
$custom-light: #8a74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#513ead",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 173
  },
  "hsl": {
    "h": 250.27,
    "s": 47.234,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45073,
    "c": 0.16902,
    "h": 285.2
  },
  "luminance": 0.08212
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #513EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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