#513EA9#513EA9

#513EA9 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.7% C 0.164 H 285.8°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#513EA9
RGBrgb(81, 62, 169)
HSLhsl(251, 46%, 45%)
HSVhsv(251, 63%, 66%)
CMYKcmyk(52.1%, 63.3%, 0%, 33.7%)
CIE-LABlab(34.10, 36.77, -54.96)
CIE-LCHlch(34.10, 66.13, 303.78°)
OKLaboklab(44.75% 0.0447 -0.1576)
OKLCHoklch(44.75% 0.164 285.8)
XYZxyz(12.2753, 8.0585, 38.4371)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EA9 #96A93E
analogous
#3E61A9 #513EA9 #863EA9
triadic
#513EA9 #A9513E #3EA951
tetradic
#513EA9 #A93E61 #96A93E #3EA986
square
#513EA9 #A93E61 #96A93E #3EA986
split-complementary
#513EA9 #A9863E #61A93E
monochromatic
#261D4F #3C2E7C #513EA9 #7260C5 #998CD5

Accessibility & contrast

On white

8.04
#513EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#513EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EA9
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EA9#FFFFFF#000000##FFFFFF
##513EA91.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#2F586D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513ea9;
/* rgb */ color: rgb(81, 62, 169);
/* oklch */ color: oklch(44.7% 0.164 285.8);
Tailwind
colors: {
  custom: {
    50: '#8a74c3',
    500: '#513ea9',
    950: '#000000',
  },
}
SCSS
$custom: #513ea9;
$custom-light: #8a74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#513ea9",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 169
  },
  "hsl": {
    "h": 250.654,
    "s": 46.32,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44746,
    "c": 0.1638,
    "h": 285.8
  },
  "luminance": 0.08059
}

Semantic roles & 50–950 ramp

primary
#513EA9
secondary
#B5C083
accent
#D652BF
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #513EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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