#513582#513582

#513582 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.2% C 0.125 H 297.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#513582
RGBrgb(81, 53, 130)
HSLhsl(262, 42%, 36%)
HSVhsv(262, 59%, 51%)
CMYKcmyk(37.7%, 59.2%, 0%, 49%)
CIE-LABlab(29.18, 30.56, -39.11)
CIE-LCHlch(29.18, 49.63, 308.01°)
OKLaboklab(40.23% 0.0571 -0.1109)
OKLCHoklch(40.23% 0.125 297.2)
XYZxyz(8.6947, 5.9071, 21.7969)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513582 #668235
analogous
#353F82 #513582 #773582
triadic
#513582 #825135 #358251
tetradic
#513582 #82353F #668235 #358277
square
#513582 #82353F #668235 #358277
split-complementary
#513582 #827735 #3F8235
monochromatic
#1B122B #362357 #513582 #6C47AD #8D6EC4

Accessibility & contrast

On white

9.63
#513582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#513582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513582
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513582#FFFFFF#000000##FFFFFF
##5135821.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4585
Deuteranopia (green-blind)
#194480
Tritanopia (blue-blind)
#464556
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #513582;
/* rgb */ color: rgb(81, 53, 130);
/* oklch */ color: oklch(40.2% 0.125 297.2);
Tailwind
colors: {
  custom: {
    50: '#856da7',
    500: '#513582',
    950: '#000000',
  },
}
SCSS
$custom: #513582;
$custom-light: #856da7;
$custom-dark: #000000;
JSON
{
  "hex": "#513582",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 130
  },
  "hsl": {
    "h": 261.818,
    "s": 42.077,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40234,
    "c": 0.12479,
    "h": 297.2
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#513582
secondary
#93AC67
accent
#D256A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #513582

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

Preview Lab → · Contrast checker → · Palette generator →

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