#513FA4#513FA4

#513FA4 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.5% C 0.156 H 286.4°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#513FA4
RGBrgb(81, 63, 164)
HSLhsl(251, 44%, 45%)
HSVhsv(251, 62%, 64%)
CMYKcmyk(50.6%, 61.6%, 0%, 35.7%)
CIE-LABlab(33.95, 34.62, -52.22)
CIE-LCHlch(33.95, 62.65, 303.55°)
OKLaboklab(44.51% 0.044 -0.1495)
OKLCHoklch(44.51% 0.156 286.4)
XYZxyz(11.8697, 7.9841, 36.0304)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FA4 #92A43F
analogous
#3F60A4 #513FA4 #843FA4
triadic
#513FA4 #A4513F #3FA451
tetradic
#513FA4 #A43F60 #92A43F #3FA484
square
#513FA4 #A43F60 #92A43F #3FA484
split-complementary
#513FA4 #A4843F #60A43F
monochromatic
#251D4C #3B2E78 #513FA4 #705FC1 #988BD2

Accessibility & contrast

On white

8.09
#513FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#513FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FA4
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FA4#FFFFFF#000000##FFFFFF
##513FA41.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#33576B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513fa4;
/* rgb */ color: rgb(81, 63, 164);
/* oklch */ color: oklch(44.5% 0.156 286.4);
Tailwind
colors: {
  custom: {
    50: '#8975c0',
    500: '#513fa4',
    950: '#000000',
  },
}
SCSS
$custom: #513fa4;
$custom-light: #8975c0;
$custom-dark: #000000;
JSON
{
  "hex": "#513fa4",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 250.693,
    "s": 44.493,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44513,
    "c": 0.15583,
    "h": 286.4
  },
  "luminance": 0.07985
}

Semantic roles & 50–950 ramp

primary
#513FA4
secondary
#B3BD82
accent
#D454BD
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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