#513B79#513B79

#513B79 is a dark, moderate violet. Relative luminance 0.063; OKLCH L 40.7% C 0.102 H 298.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#513B79
RGBrgb(81, 59, 121)
HSLhsl(261, 34%, 35%)
HSVhsv(261, 51%, 47%)
CMYKcmyk(33.1%, 51.2%, 0%, 52.5%)
CIE-LABlab(30.05, 24.28, -32.07)
CIE-LCHlch(30.05, 40.22, 307.13°)
OKLaboklab(40.7% 0.0482 -0.0903)
OKLCHoklch(40.7% 0.102 298.1)
XYZxyz(8.4077, 6.2576, 18.8503)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513B79 #63793B
analogous
#3B4479 #513B79 #703B79
triadic
#513B79 #79513B #3B7951
tetradic
#513B79 #793B44 #63793B #3B7970
square
#513B79 #793B44 #63793B #3B7970
split-complementary
#513B79 #79703B #44793B
monochromatic
#1A1327 #352750 #513B79 #6D4FA2 #8D73BB

Accessibility & contrast

On white

9.33
#513B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#513B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513B79
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513B79#FFFFFF#000000##FFFFFF
##513B791.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477B
Deuteranopia (green-blind)
#2B4678
Tritanopia (blue-blind)
#494754
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #513b79;
/* rgb */ color: rgb(81, 59, 121);
/* oklch */ color: oklch(40.7% 0.102 298.1);
Tailwind
colors: {
  custom: {
    50: '#8471a0',
    500: '#513b79',
    950: '#000000',
  },
}
SCSS
$custom: #513b79;
$custom-light: #8471a0;
$custom-dark: #000000;
JSON
{
  "hex": "#513b79",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 121
  },
  "hsl": {
    "h": 261.29,
    "s": 34.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40697,
    "c": 0.10238,
    "h": 298.1
  },
  "luminance": 0.06258
}

Semantic roles & 50–950 ramp

primary
#513B79
secondary
#90A56B
accent
#CB5DA4
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B080F
muted
#7C7B7E

Preview Lab

Preview with #513B79

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

Preview Lab → · Contrast checker → · Palette generator →

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