#513181#513181

#513181 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.130 H 298.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#513181
RGBrgb(81, 49, 129)
HSLhsl(264, 45%, 35%)
HSVhsv(264, 62%, 51%)
CMYKcmyk(37.2%, 62%, 0%, 49.4%)
CIE-LABlab(28.20, 32.68, -40.06)
CIE-LCHlch(28.20, 51.70, 309.21°)
OKLaboklab(39.49% 0.0624 -0.1137)
OKLCHoklch(39.49% 0.13 298.7)
XYZxyz(8.4531, 5.5308, 21.3868)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513181 #618131
analogous
#313981 #513181 #793181
triadic
#513181 #815131 #318151
tetradic
#513181 #813139 #618131 #318179
square
#513181 #813139 #618131 #318179
split-complementary
#513181 #817931 #398131
monochromatic
#190F28 #352055 #513181 #6D42AD #8D67C5

Accessibility & contrast

On white

9.97
#513181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#513181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513181
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513181#FFFFFF#000000##FFFFFF
##5131811.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004384
Deuteranopia (green-blind)
#13427F
Tritanopia (blue-blind)
#464254
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #513181;
/* rgb */ color: rgb(81, 49, 129);
/* oklch */ color: oklch(39.5% 0.130 298.7);
Tailwind
colors: {
  custom: {
    50: '#856ba6',
    500: '#513181',
    950: '#000000',
  },
}
SCSS
$custom: #513181;
$custom-light: #856ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#513181",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 264,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39494,
    "c": 0.12974,
    "h": 298.7
  },
  "luminance": 0.05531
}

Semantic roles & 50–950 ramp

primary
#513181
secondary
#8EAD61
accent
#D553A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #513181

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

Preview Lab → · Contrast checker → · Palette generator →

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