#513B91#513B91

#513B91 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.4% C 0.136 H 291.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#513B91
RGBrgb(81, 59, 145)
HSLhsl(255, 42%, 40%)
HSVhsv(255, 59%, 57%)
CMYKcmyk(44.1%, 59.3%, 0%, 43.1%)
CIE-LABlab(31.63, 31.28, -44.44)
CIE-LCHlch(31.63, 54.34, 305.14°)
OKLaboklab(42.37% 0.0493 -0.1266)
OKLCHoklch(42.37% 0.136 291.3)
XYZxyz(10.0667, 6.9213, 27.5881)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513B91 #7B913B
analogous
#3B5091 #513B91 #7C3B91
triadic
#513B91 #91513B #3B9151
tetradic
#513B91 #913B50 #7B913B #3B917C
square
#513B91 #913B50 #7B913B #3B917C
split-complementary
#513B91 #917C3B #50913B
monochromatic
#20183A #392966 #513B91 #6B51B8 #907CCA

Accessibility & contrast

On white

8.81
#513B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#513B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513B91
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513B91#FFFFFF#000000##FFFFFF
##513B911.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024C94
Deuteranopia (green-blind)
#0B498F
Tritanopia (blue-blind)
#3F4E60
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #513b91;
/* rgb */ color: rgb(81, 59, 145);
/* oklch */ color: oklch(42.4% 0.136 291.3);
Tailwind
colors: {
  custom: {
    50: '#8772b2',
    500: '#513b91',
    950: '#000000',
  },
}
SCSS
$custom: #513b91;
$custom-light: #8772b2;
$custom-dark: #000000;
JSON
{
  "hex": "#513b91",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 145
  },
  "hsl": {
    "h": 255.349,
    "s": 42.157,
    "l": 40
  },
  "oklch": {
    "l": 0.42368,
    "c": 0.1359,
    "h": 291.3
  },
  "luminance": 0.06922
}

Semantic roles & 50–950 ramp

primary
#513B91
secondary
#A3B474
accent
#D256B2
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513B91

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

Preview Lab → · Contrast checker → · Palette generator →

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