#513C8A#513C8A

#513C8A is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.0% C 0.125 H 292.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#513C8A
RGBrgb(81, 60, 138)
HSLhsl(256, 39%, 39%)
HSVhsv(256, 57%, 54%)
CMYKcmyk(41.3%, 56.5%, 0%, 45.9%)
CIE-LABlab(31.38, 28.57, -40.53)
CIE-LCHlch(31.38, 49.59, 305.19°)
OKLaboklab(42.04% 0.048 -0.1151)
OKLCHoklch(42.04% 0.125 292.6)
XYZxyz(9.5954, 6.8158, 24.8498)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513C8A #758A3C
analogous
#3C4E8A #513C8A #783C8A
triadic
#513C8A #8A513C #3C8A51
tetradic
#513C8A #8A3C4E #758A3C #3C8A78
square
#513C8A #8A3C4E #758A3C #3C8A78
split-complementary
#513C8A #8A783C #4E8A3C
monochromatic
#1F1735 #38295F #513C8A #6B50B3 #8F7BC6

Accessibility & contrast

On white

8.89
#513C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#513C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513C8A
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513C8A#FFFFFF#000000##FFFFFF
##513C8A1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8D
Deuteranopia (green-blind)
#1B4888
Tritanopia (blue-blind)
#424C5D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #513c8a;
/* rgb */ color: rgb(81, 60, 138);
/* oklch */ color: oklch(42.0% 0.125 292.6);
Tailwind
colors: {
  custom: {
    50: '#8672ad',
    500: '#513c8a',
    950: '#000000',
  },
}
SCSS
$custom: #513c8a;
$custom-light: #8672ad;
$custom-dark: #000000;
JSON
{
  "hex": "#513c8a",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 256.154,
    "s": 39.394,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42035,
    "c": 0.12473,
    "h": 292.6
  },
  "luminance": 0.06816
}

Semantic roles & 50–950 ramp

primary
#513C8A
secondary
#9FAF73
accent
#CF59AF
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #513C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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