#513C8D#513C8D

#513C8D is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.3% C 0.129 H 291.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#513C8D
RGBrgb(81, 60, 141)
HSLhsl(256, 40%, 39%)
HSVhsv(256, 57%, 55%)
CMYKcmyk(42.6%, 57.4%, 0%, 44.7%)
CIE-LABlab(31.59, 29.47, -42.05)
CIE-LCHlch(31.59, 51.34, 305.02°)
OKLaboklab(42.25% 0.0481 -0.1196)
OKLCHoklch(42.25% 0.129 291.9)
XYZxyz(9.8156, 6.9039, 26.0096)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513C8D #788D3C
analogous
#3C4F8D #513C8D #7A3C8D
triadic
#513C8D #8D513C #3C8D51
tetradic
#513C8D #8D3C4F #788D3C #3C8D7A
square
#513C8D #8D3C4F #788D3C #3C8D7A
split-complementary
#513C8D #8D7A3C #4F8D3C
monochromatic
#201737 #382A62 #513C8D #6B51B5 #907CC7

Accessibility & contrast

On white

8.82
#513C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513C8D
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513C8D#FFFFFF#000000##FFFFFF
##513C8D1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#17498B
Tritanopia (blue-blind)
#414D5E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #513c8d;
/* rgb */ color: rgb(81, 60, 141);
/* oklch */ color: oklch(42.3% 0.129 291.9);
Tailwind
colors: {
  custom: {
    50: '#8672af',
    500: '#513c8d',
    950: '#000000',
  },
}
SCSS
$custom: #513c8d;
$custom-light: #8672af;
$custom-dark: #000000;
JSON
{
  "hex": "#513c8d",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 255.556,
    "s": 40.299,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4225,
    "c": 0.1289,
    "h": 291.9
  },
  "luminance": 0.06904
}

Semantic roles & 50–950 ramp

primary
#513C8D
secondary
#A1B174
accent
#D058B1
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #513C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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