#513E8A#513E8A

#513E8A is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.4% C 0.122 H 291.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#513E8A
RGBrgb(81, 62, 138)
HSLhsl(255, 38%, 39%)
HSVhsv(255, 55%, 54%)
CMYKcmyk(41.3%, 55.1%, 0%, 45.9%)
CIE-LABlab(31.87, 27.32, -39.74)
CIE-LCHlch(31.87, 48.23, 304.51°)
OKLaboklab(42.4% 0.0454 -0.1128)
OKLCHoklch(42.4% 0.122 291.9)
XYZxyz(9.7022, 7.0293, 24.8854)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513E8A #778A3E
analogous
#3E518A #513E8A #773E8A
triadic
#513E8A #8A513E #3E8A51
tetradic
#513E8A #8A3E51 #778A3E #3E8A77
square
#513E8A #8A3E51 #778A3E #3E8A77
split-complementary
#513E8A #8A773E #518A3E
monochromatic
#1F1836 #382B60 #513E8A #6B53B2 #8F7EC5

Accessibility & contrast

On white

8.73
#513E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#513E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513E8A
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513E8A#FFFFFF#000000##FFFFFF
##513E8A1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4C8D
Deuteranopia (green-blind)
#1F4988
Tritanopia (blue-blind)
#424E5E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #513e8a;
/* rgb */ color: rgb(81, 62, 138);
/* oklch */ color: oklch(42.4% 0.122 291.9);
Tailwind
colors: {
  custom: {
    50: '#8574ad',
    500: '#513e8a',
    950: '#000000',
  },
}
SCSS
$custom: #513e8a;
$custom-light: #8574ad;
$custom-dark: #000000;
JSON
{
  "hex": "#513e8a",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 255,
    "s": 38,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42398,
    "c": 0.12159,
    "h": 291.9
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

primary
#513E8A
secondary
#A0AF75
accent
#CE5AB1
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #513E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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