#513B8A#513B8A

#513B8A is a dark, vivid violet. Relative luminance 0.067; OKLCH L 41.9% C 0.126 H 293.0°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#513B8A
RGBrgb(81, 59, 138)
HSLhsl(257, 40%, 39%)
HSVhsv(257, 57%, 54%)
CMYKcmyk(41.3%, 57.2%, 0%, 45.9%)
CIE-LABlab(31.14, 29.20, -40.91)
CIE-LCHlch(31.14, 50.26, 305.51°)
OKLaboklab(41.86% 0.0493 -0.1163)
OKLCHoklch(41.86% 0.126 293)
XYZxyz(9.5435, 6.7120, 24.8325)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513B8A #748A3B
analogous
#3B4C8A #513B8A #783B8A
triadic
#513B8A #8A513B #3B8A51
tetradic
#513B8A #8A3B4C #748A3B #3B8A78
square
#513B8A #8A3B4C #748A3B #3B8A78
split-complementary
#513B8A #8A783B #4C8A3B
monochromatic
#1F1634 #38295F #513B8A #6B4FB4 #8F79C6

Accessibility & contrast

On white

8.97
#513B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#513B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513B8A
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513B8A#FFFFFF#000000##FFFFFF
##513B8A1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134A8D
Deuteranopia (green-blind)
#194888
Tritanopia (blue-blind)
#424C5C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #513b8a;
/* rgb */ color: rgb(81, 59, 138);
/* oklch */ color: oklch(41.9% 0.126 293.0);
Tailwind
colors: {
  custom: {
    50: '#8672ad',
    500: '#513b8a',
    950: '#000000',
  },
}
SCSS
$custom: #513b8a;
$custom-light: #8672ad;
$custom-dark: #000000;
JSON
{
  "hex": "#513b8a",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 256.709,
    "s": 40.102,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41856,
    "c": 0.12629,
    "h": 293
  },
  "luminance": 0.06712
}

Semantic roles & 50–950 ramp

primary
#513B8A
secondary
#9EAF71
accent
#D058AF
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #513B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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