#513992#513992

#513992 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.1% C 0.140 H 291.7°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#513992
RGBrgb(81, 57, 146)
HSLhsl(256, 44%, 40%)
HSVhsv(256, 61%, 57%)
CMYKcmyk(44.5%, 61%, 0%, 42.7%)
CIE-LABlab(31.23, 32.80, -45.69)
CIE-LCHlch(31.23, 56.24, 305.67°)
OKLaboklab(42.1% 0.0517 -0.1303)
OKLCHoklch(42.1% 0.14 291.7)
XYZxyz(10.0433, 6.7506, 27.9624)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513992 #7A9239
analogous
#394E92 #513992 #7E3992
triadic
#513992 #925139 #399251
tetradic
#513992 #92394E #7A9239 #39927E
square
#513992 #92394E #7A9239 #39927E
split-complementary
#513992 #927E39 #4E9239
monochromatic
#20173A #392866 #513992 #6B4EBA #907ACB

Accessibility & contrast

On white

8.94
#513992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#513992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513992
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513992#FFFFFF#000000##FFFFFF
##5139921.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B95
Deuteranopia (green-blind)
#004890
Tritanopia (blue-blind)
#3E4D60
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #513992;
/* rgb */ color: rgb(81, 57, 146);
/* oklch */ color: oklch(42.1% 0.140 291.7);
Tailwind
colors: {
  custom: {
    50: '#8770b3',
    500: '#513992',
    950: '#000000',
  },
}
SCSS
$custom: #513992;
$custom-light: #8770b3;
$custom-dark: #000000;
JSON
{
  "hex": "#513992",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 146
  },
  "hsl": {
    "h": 256.18,
    "s": 43.842,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42102,
    "c": 0.14021,
    "h": 291.7
  },
  "luminance": 0.06751
}

Semantic roles & 50–950 ramp

primary
#513992
secondary
#A3B472
accent
#D454B1
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #513992

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

Preview Lab → · Contrast checker → · Palette generator →

#513992 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva