#513A99#513A99

#513A99 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.8% C 0.148 H 289.8°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#513A99
RGBrgb(81, 58, 153)
HSLhsl(255, 45%, 41%)
HSVhsv(255, 62%, 60%)
CMYKcmyk(47.1%, 62.1%, 0%, 40%)
CIE-LABlab(31.98, 34.29, -48.76)
CIE-LCHlch(31.98, 59.61, 305.11°)
OKLaboklab(42.81% 0.0502 -0.1393)
OKLCHoklch(42.81% 0.148 289.8)
XYZxyz(10.6545, 7.0750, 30.9350)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513A99 #82993A
analogous
#3A5399 #513A99 #813A99
triadic
#513A99 #99513A #3A9951
tetradic
#513A99 #993A53 #82993A #3A9981
square
#513A99 #993A53 #82993A #3A9981
split-complementary
#513A99 #99813A #53993A
monochromatic
#221840 #3A296D #513A99 #6C53BE #927FCE

Accessibility & contrast

On white

8.70
#513A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#513A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513A99
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513A99#FFFFFF#000000##FFFFFF
##513A991.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#3B5064
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #513a99;
/* rgb */ color: rgb(81, 58, 153);
/* oklch */ color: oklch(42.8% 0.148 289.8);
Tailwind
colors: {
  custom: {
    50: '#8871b8',
    500: '#513a99',
    950: '#000000',
  },
}
SCSS
$custom: #513a99;
$custom-light: #8871b8;
$custom-dark: #000000;
JSON
{
  "hex": "#513a99",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 153
  },
  "hsl": {
    "h": 254.526,
    "s": 45.024,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4281,
    "c": 0.14812,
    "h": 289.8
  },
  "luminance": 0.07075
}

Semantic roles & 50–950 ramp

primary
#513A99
secondary
#A8B877
accent
#D553B5
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513A99

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

Preview Lab → · Contrast checker → · Palette generator →

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