#513AB7#513AB7

#513AB7 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.187 H 284.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#513AB7
RGBrgb(81, 58, 183)
HSLhsl(251, 52%, 47%)
HSVhsv(251, 68%, 72%)
CMYKcmyk(55.7%, 68.3%, 0%, 28.2%)
CIE-LABlab(34.38, 43.39, -62.84)
CIE-LCHlch(34.38, 76.36, 304.63°)
OKLaboklab(45.3% 0.0469 -0.1807)
OKLCHoklch(45.3% 0.187 284.6)
XYZxyz(13.4510, 8.1936, 45.6633)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AB7 #A0B73A
analogous
#3A62B7 #513AB7 #903AB7
triadic
#513AB7 #B7513A #3AB751
tetradic
#513AB7 #B73A62 #A0B73A #3AB790
square
#513AB7 #B73A62 #A0B73A #3AB790
split-complementary
#513AB7 #B7903A #62B73A
monochromatic
#281D5A #3C2B89 #513AB7 #7561CD #9E90DC

Accessibility & contrast

On white

7.96
#513AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513AB7
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AB7#FFFFFF#000000##FFFFFF
##513AB71.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#215A74
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513ab7;
/* rgb */ color: rgb(81, 58, 183);
/* oklch */ color: oklch(45.3% 0.187 284.6);
Tailwind
colors: {
  custom: {
    50: '#8c72ce',
    500: '#513ab7',
    950: '#000000',
  },
}
SCSS
$custom: #513ab7;
$custom-light: #8c72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#513ab7",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 183
  },
  "hsl": {
    "h": 251.04,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45303,
    "c": 0.18669,
    "h": 284.6
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#513AB7
secondary
#BBC786
accent
#DB4CC1
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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