#513784#513784

#513784 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.7% C 0.124 H 296.0°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#513784
RGBrgb(81, 55, 132)
HSLhsl(260, 41%, 37%)
HSVhsv(260, 58%, 52%)
CMYKcmyk(38.6%, 58.3%, 0%, 48.2%)
CIE-LABlab(29.78, 29.91, -39.38)
CIE-LCHlch(29.78, 49.45, 307.22°)
OKLaboklab(40.72% 0.0545 -0.1118)
OKLCHoklch(40.72% 0.124 296)
XYZxyz(8.9233, 6.1475, 22.5418)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513784 #6A8437
analogous
#374484 #513784 #783784
triadic
#513784 #845137 #378451
tetradic
#513784 #843744 #6A8437 #378478
square
#513784 #843744 #6A8437 #378478
split-complementary
#513784 #847837 #448437
monochromatic
#1C132E #362559 #513784 #6C49AF #8D71C4

Accessibility & contrast

On white

9.42
#513784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#513784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513784
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513784#FFFFFF#000000##FFFFFF
##5137841.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114787
Deuteranopia (green-blind)
#1A4582
Tritanopia (blue-blind)
#454758
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #513784;
/* rgb */ color: rgb(81, 55, 132);
/* oklch */ color: oklch(40.7% 0.124 296.0);
Tailwind
colors: {
  custom: {
    50: '#856fa8',
    500: '#513784',
    950: '#000000',
  },
}
SCSS
$custom: #513784;
$custom-light: #856fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#513784",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 132
  },
  "hsl": {
    "h": 260.26,
    "s": 41.176,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40722,
    "c": 0.12433,
    "h": 296
  },
  "luminance": 0.06148
}

Semantic roles & 50–950 ramp

primary
#513784
secondary
#96AD6A
accent
#D157A8
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #513784

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

Preview Lab → · Contrast checker → · Palette generator →

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