#513B99#513B99

#513B99 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.0% C 0.147 H 289.5°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#513B99
RGBrgb(81, 59, 153)
HSLhsl(254, 44%, 42%)
HSVhsv(254, 61%, 60%)
CMYKcmyk(47.1%, 61.4%, 0%, 40%)
CIE-LABlab(32.21, 33.68, -48.39)
CIE-LCHlch(32.21, 58.96, 304.84°)
OKLaboklab(42.98% 0.0491 -0.1383)
OKLCHoklch(42.98% 0.147 289.5)
XYZxyz(10.7054, 7.1768, 30.9520)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513B99 #83993B
analogous
#3B5499 #513B99 #803B99
triadic
#513B99 #99513B #3B9951
tetradic
#513B99 #993B54 #83993B #3B9980
square
#513B99 #993B54 #83993B #3B9980
split-complementary
#513B99 #99803B #54993B
monochromatic
#221941 #3A2A6D #513B99 #6D54BD #9280CE

Accessibility & contrast

On white

8.62
#513B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#513B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513B99
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513B99#FFFFFF#000000##FFFFFF
##513B991.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#3A5164
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #513b99;
/* rgb */ color: rgb(81, 59, 153);
/* oklch */ color: oklch(43.0% 0.147 289.5);
Tailwind
colors: {
  custom: {
    50: '#8872b8',
    500: '#513b99',
    950: '#000000',
  },
}
SCSS
$custom: #513b99;
$custom-light: #8872b8;
$custom-dark: #000000;
JSON
{
  "hex": "#513b99",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 153
  },
  "hsl": {
    "h": 254.043,
    "s": 44.34,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42977,
    "c": 0.1467,
    "h": 289.5
  },
  "luminance": 0.07177
}

Semantic roles & 50–950 ramp

primary
#513B99
secondary
#A9B878
accent
#D454B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513B99

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

Preview Lab → · Contrast checker → · Palette generator →

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