#513F8A#513F8A

#513F8A is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.6% C 0.120 H 291.5°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#513F8A
RGBrgb(81, 63, 138)
HSLhsl(254, 37%, 39%)
HSVhsv(254, 54%, 54%)
CMYKcmyk(41.3%, 54.3%, 0%, 45.9%)
CIE-LABlab(32.12, 26.70, -39.34)
CIE-LCHlch(32.12, 47.55, 304.16°)
OKLaboklab(42.58% 0.044 -0.1116)
OKLCHoklch(42.58% 0.12 291.5)
XYZxyz(9.7570, 7.1390, 24.9037)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513F8A #788A3F
analogous
#3F538A #513F8A #773F8A
triadic
#513F8A #8A513F #3F8A51
tetradic
#513F8A #8A3F53 #788A3F #3F8A77
square
#513F8A #8A3F53 #788A3F #3F8A77
split-complementary
#513F8A #8A773F #538A3F
monochromatic
#201936 #382C60 #513F8A #6B55B1 #907FC5

Accessibility & contrast

On white

8.65
#513F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#513F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513F8A
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513F8A#FFFFFF#000000##FFFFFF
##513F8A1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8D
Deuteranopia (green-blind)
#214A88
Tritanopia (blue-blind)
#424F5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #513f8a;
/* rgb */ color: rgb(81, 63, 138);
/* oklch */ color: oklch(42.6% 0.120 291.5);
Tailwind
colors: {
  custom: {
    50: '#8574ad',
    500: '#513f8a',
    950: '#000000',
  },
}
SCSS
$custom: #513f8a;
$custom-light: #8574ad;
$custom-dark: #000000;
JSON
{
  "hex": "#513f8a",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 254.4,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42582,
    "c": 0.12001,
    "h": 291.5
  },
  "luminance": 0.07139
}

Semantic roles & 50–950 ramp

primary
#513F8A
secondary
#A1AF76
accent
#CD5BB2
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #513F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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