#513FA9#513FA9

#513FA9 is a dark, vivid violet. Relative luminance 0.082; OKLCH L 44.9% C 0.162 H 285.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#513FA9
RGBrgb(81, 63, 169)
HSLhsl(250, 46%, 45%)
HSVhsv(250, 63%, 66%)
CMYKcmyk(52.1%, 62.7%, 0%, 33.7%)
CIE-LABlab(34.33, 36.17, -54.59)
CIE-LCHlch(34.33, 65.49, 303.52°)
OKLaboklab(44.91% 0.0437 -0.1565)
OKLCHoklch(44.91% 0.162 285.6)
XYZxyz(12.3301, 8.1683, 38.4554)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FA9 #97A93F
analogous
#3F62A9 #513FA9 #863FA9
triadic
#513FA9 #A9513F #3FA951
tetradic
#513FA9 #A93F62 #97A93F #3FA986
square
#513FA9 #A93F62 #97A93F #3FA986
split-complementary
#513FA9 #A9863F #62A93F
monochromatic
#261E50 #3C2E7C #513FA9 #7261C4 #9A8ED5

Accessibility & contrast

On white

7.97
#513FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#513FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FA9
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FA9#FFFFFF#000000##FFFFFF
##513FA91.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#004EA7
Tritanopia (blue-blind)
#2F586E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513fa9;
/* rgb */ color: rgb(81, 63, 169);
/* oklch */ color: oklch(44.9% 0.162 285.6);
Tailwind
colors: {
  custom: {
    50: '#8a75c3',
    500: '#513fa9',
    950: '#000000',
  },
}
SCSS
$custom: #513fa9;
$custom-light: #8a75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#513fa9",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 169
  },
  "hsl": {
    "h": 250.189,
    "s": 45.69,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44911,
    "c": 0.16246,
    "h": 285.6
  },
  "luminance": 0.08169
}

Semantic roles & 50–950 ramp

primary
#513FA9
secondary
#B6C084
accent
#D552BF
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #513FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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