#513B97#513B97

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

Color values

HEX#513B97
RGBrgb(81, 59, 151)
HSLhsl(254, 44%, 41%)
HSVhsv(254, 61%, 59%)
CMYKcmyk(46.4%, 60.9%, 0%, 40.8%)
CIE-LABlab(32.06, 33.08, -47.41)
CIE-LCHlch(32.06, 57.81, 304.90°)
OKLaboklab(42.82% 0.0492 -0.1354)
OKLCHoklch(42.82% 0.144 290)
XYZxyz(10.5416, 7.1112, 30.0893)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513B97 #81973B
analogous
#3B5397 #513B97 #7F3B97
triadic
#513B97 #97513B #3B9751
tetradic
#513B97 #973B53 #81973B #3B977F
square
#513B97 #973B53 #81973B #3B977F
split-complementary
#513B97 #977F3B #53973B
monochromatic
#22193F #392A6B #513B97 #6C53BC #927FCD

Accessibility & contrast

On white

8.67
#513B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#513B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513B97
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513B97#FFFFFF#000000##FFFFFF
##513B971.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#3C5063
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #513b97;
/* rgb */ color: rgb(81, 59, 151);
/* oklch */ color: oklch(42.8% 0.144 290.0);
Tailwind
colors: {
  custom: {
    50: '#8772b6',
    500: '#513b97',
    950: '#000000',
  },
}
SCSS
$custom: #513b97;
$custom-light: #8772b6;
$custom-dark: #000000;
JSON
{
  "hex": "#513b97",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 254.348,
    "s": 43.81,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42823,
    "c": 0.14402,
    "h": 290
  },
  "luminance": 0.07112
}

Semantic roles & 50–950 ramp

primary
#513B97
secondary
#A8B777
accent
#D454B5
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513B97

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

Preview Lab → · Contrast checker → · Palette generator →

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