#513FA1#513FA1

#513FA1 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.3% C 0.152 H 286.9°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#513FA1
RGBrgb(81, 63, 161)
HSLhsl(251, 44%, 44%)
HSVhsv(251, 61%, 63%)
CMYKcmyk(49.7%, 60.9%, 0%, 36.9%)
CIE-LABlab(33.73, 33.69, -50.77)
CIE-LCHlch(33.73, 60.94, 303.57°)
OKLaboklab(44.28% 0.0442 -0.1452)
OKLCHoklch(44.28% 0.152 286.9)
XYZxyz(11.6020, 7.8770, 34.6204)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FA1 #8FA13F
analogous
#3F5EA1 #513FA1 #823FA1
triadic
#513FA1 #A1513F #3FA151
tetradic
#513FA1 #A13F5E #8FA13F #3FA182
square
#513FA1 #A13F5E #8FA13F #3FA182
split-complementary
#513FA1 #A1823F #5EA13F
monochromatic
#251D49 #3B2E75 #513FA1 #6F5DC0 #9789D1

Accessibility & contrast

On white

8.15
#513FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#513FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FA1
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FA1#FFFFFF#000000##FFFFFF
##513FA11.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#35566A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513fa1;
/* rgb */ color: rgb(81, 63, 161);
/* oklch */ color: oklch(44.3% 0.152 286.9);
Tailwind
colors: {
  custom: {
    50: '#8875bd',
    500: '#513fa1',
    950: '#000000',
  },
}
SCSS
$custom: #513fa1;
$custom-light: #8875bd;
$custom-dark: #000000;
JSON
{
  "hex": "#513fa1",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 251.02,
    "s": 43.75,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44277,
    "c": 0.15181,
    "h": 286.9
  },
  "luminance": 0.07878
}

Semantic roles & 50–950 ramp

primary
#513FA1
secondary
#B1BC80
accent
#D354BC
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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