#513B7D#513B7D

#513B7D is a dark, moderate violet. Relative luminance 0.064; OKLCH L 41.0% C 0.108 H 296.7°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#513B7D
RGBrgb(81, 59, 125)
HSLhsl(260, 36%, 36%)
HSVhsv(260, 53%, 49%)
CMYKcmyk(35.2%, 52.8%, 0%, 51%)
CIE-LABlab(30.30, 25.41, -34.19)
CIE-LCHlch(30.30, 42.60, 306.63°)
OKLaboklab(40.96% 0.0486 -0.0965)
OKLCHoklch(40.96% 0.108 296.7)
XYZxyz(8.6581, 6.3578, 20.1691)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513B7D #677D3B
analogous
#3B467D #513B7D #723B7D
triadic
#513B7D #7D513B #3B7D51
tetradic
#513B7D #7D3B46 #677D3B #3B7D72
square
#513B7D #7D3B46 #677D3B #3B7D72
split-complementary
#513B7D #7D723B #467D3B
monochromatic
#1B142A #362753 #513B7D #6C4FA7 #8D75BE

Accessibility & contrast

On white

9.24
#513B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#513B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513B7D
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513B7D#FFFFFF#000000##FFFFFF
##513B7D1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#28477B
Tritanopia (blue-blind)
#474856
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #513b7d;
/* rgb */ color: rgb(81, 59, 125);
/* oklch */ color: oklch(41.0% 0.108 296.7);
Tailwind
colors: {
  custom: {
    50: '#8471a3',
    500: '#513b7d',
    950: '#000000',
  },
}
SCSS
$custom: #513b7d;
$custom-light: #8471a3;
$custom-dark: #000000;
JSON
{
  "hex": "#513b7d",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 125
  },
  "hsl": {
    "h": 260,
    "s": 35.87,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40958,
    "c": 0.10807,
    "h": 296.7
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#513B7D
secondary
#94A76C
accent
#CC5CA7
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #513B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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