#513B71#513B71

#513B71 is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.2% C 0.091 H 301.2°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#513B71
RGBrgb(81, 59, 113)
HSLhsl(264, 31%, 34%)
HSVhsv(264, 48%, 44%)
CMYKcmyk(28.3%, 47.8%, 0%, 55.7%)
CIE-LABlab(29.59, 22.05, -27.76)
CIE-LCHlch(29.59, 35.45, 308.47°)
OKLaboklab(40.2% 0.0471 -0.0777)
OKLCHoklch(40.2% 0.091 301.2)
XYZxyz(7.9373, 6.0695, 16.3730)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513B71 #5B713B
analogous
#3B4071 #513B71 #6C3B71
triadic
#513B71 #71513B #3B7151
tetradic
#513B71 #713B40 #5B713B #3B716C
square
#513B71 #713B40 #5B713B #3B716C
split-complementary
#513B71 #716C3B #40713B
monochromatic
#171121 #342649 #513B71 #6E5099 #8D71B5

Accessibility & contrast

On white

9.49
#513B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#513B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513B71
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513B71#FFFFFF#000000##FFFFFF
##513B711.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4573
Deuteranopia (green-blind)
#314570
Tritanopia (blue-blind)
#4B4450
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #513b71;
/* rgb */ color: rgb(81, 59, 113);
/* oklch */ color: oklch(40.2% 0.091 301.2);
Tailwind
colors: {
  custom: {
    50: '#83719a',
    500: '#513b71',
    950: '#000000',
  },
}
SCSS
$custom: #513b71;
$custom-light: #83719a;
$custom-dark: #000000;
JSON
{
  "hex": "#513b71",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 113
  },
  "hsl": {
    "h": 264.444,
    "s": 31.395,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40196,
    "c": 0.09091,
    "h": 301.2
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

primary
#513B71
secondary
#899F69
accent
#C8609D
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #513B71

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

Preview Lab → · Contrast checker → · Palette generator →

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