#513FA5#513FA5

#513FA5 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.6% C 0.157 H 286.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#513FA5
RGBrgb(81, 63, 165)
HSLhsl(251, 45%, 45%)
HSVhsv(251, 62%, 65%)
CMYKcmyk(50.9%, 61.8%, 0%, 35.3%)
CIE-LABlab(34.03, 34.93, -52.69)
CIE-LCHlch(34.03, 63.22, 303.54°)
OKLaboklab(44.59% 0.044 -0.1509)
OKLCHoklch(44.59% 0.157 286.2)
XYZxyz(11.9604, 8.0204, 36.5079)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FA5 #93A53F
analogous
#3F60A5 #513FA5 #843FA5
triadic
#513FA5 #A5513F #3FA551
tetradic
#513FA5 #A53F60 #93A53F #3FA584
square
#513FA5 #A53F60 #93A53F #3FA584
split-complementary
#513FA5 #A5843F #60A53F
monochromatic
#261D4C #3B2E79 #513FA5 #715FC2 #988CD3

Accessibility & contrast

On white

8.06
#513FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513FA5
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FA5#FFFFFF#000000##FFFFFF
##513FA51.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#32576C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513fa5;
/* rgb */ color: rgb(81, 63, 165);
/* oklch */ color: oklch(44.6% 0.157 286.2);
Tailwind
colors: {
  custom: {
    50: '#8975c0',
    500: '#513fa5',
    950: '#000000',
  },
}
SCSS
$custom: #513fa5;
$custom-light: #8975c0;
$custom-dark: #000000;
JSON
{
  "hex": "#513fa5",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 250.588,
    "s": 44.737,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44592,
    "c": 0.15716,
    "h": 286.2
  },
  "luminance": 0.08021
}

Semantic roles & 50–950 ramp

primary
#513FA5
secondary
#B3BE82
accent
#D453BE
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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