#513AB9#513AB9

#513AB9 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.189 H 284.3°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#513AB9
RGBrgb(81, 58, 185)
HSLhsl(251, 52%, 48%)
HSVhsv(251, 69%, 73%)
CMYKcmyk(56.2%, 68.6%, 0%, 27.5%)
CIE-LABlab(34.55, 44.00, -63.74)
CIE-LCHlch(34.55, 77.45, 304.62°)
OKLaboklab(45.48% 0.0466 -0.1834)
OKLCHoklch(45.48% 0.189 284.3)
XYZxyz(13.6607, 8.2774, 46.7674)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AB9 #A2B93A
analogous
#3A63B9 #513AB9 #903AB9
triadic
#513AB9 #B9513A #3AB951
tetradic
#513AB9 #B93A63 #A2B93A #3AB990
square
#513AB9 #B93A63 #A2B93A #3AB990
split-complementary
#513AB9 #B9903A #63B93A
monochromatic
#281D5C #3D2B8A #513AB9 #7662CE #9F91DC

Accessibility & contrast

On white

7.91
#513AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#513AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513AB9
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AB9#FFFFFF#000000##FFFFFF
##513AB91.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#1E5B75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513ab9;
/* rgb */ color: rgb(81, 58, 185);
/* oklch */ color: oklch(45.5% 0.189 284.3);
Tailwind
colors: {
  custom: {
    50: '#8c72cf',
    500: '#513ab9',
    950: '#000000',
  },
}
SCSS
$custom: #513ab9;
$custom-light: #8c72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#513ab9",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 185
  },
  "hsl": {
    "h": 250.866,
    "s": 52.263,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45479,
    "c": 0.18918,
    "h": 284.3
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#513AB9
secondary
#BCC787
accent
#DC4CC2
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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