#513166#513166

#513166 is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.7% C 0.094 H 310.5°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#513166
RGBrgb(81, 49, 102)
HSLhsl(276, 35%, 30%)
HSVhsv(276, 52%, 40%)
CMYKcmyk(20.6%, 52%, 0%, 60%)
CIE-LABlab(26.46, 25.44, -25.65)
CIE-LCHlch(26.46, 36.13, 314.77°)
OKLaboklab(37.66% 0.0611 -0.0716)
OKLCHoklch(37.66% 0.094 310.5)
XYZxyz(6.8895, 4.9054, 13.1517)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513166 #466631
analogous
#373166 #513166 #663161
triadic
#513166 #665131 #316651
tetradic
#513166 #663731 #466631 #316166
square
#513166 #663731 #466631 #316166
split-complementary
#513166 #616631 #316637
monochromatic
#100A15 #301D3D #513166 #72458F #915FB2

Accessibility & contrast

On white

10.60
#513166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#513166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513166
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513166#FFFFFF#000000##FFFFFF
##5131661.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243D68
Deuteranopia (green-blind)
#2D3F65
Tritanopia (blue-blind)
#4F3A46
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #513166;
/* rgb */ color: rgb(81, 49, 102);
/* oklch */ color: oklch(37.7% 0.094 310.5);
Tailwind
colors: {
  custom: {
    50: '#836a92',
    500: '#513166',
    950: '#000000',
  },
}
SCSS
$custom: #513166;
$custom-light: #836a92;
$custom-dark: #000000;
JSON
{
  "hex": "#513166",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 276.226,
    "s": 35.099,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37659,
    "c": 0.09413,
    "h": 310.5
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

primary
#513166
secondary
#73975C
accent
#CB5D88
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #513166

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

Preview Lab → · Contrast checker → · Palette generator →

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