#513682#513682

#513682 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.4% C 0.123 H 296.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#513682
RGBrgb(81, 54, 130)
HSLhsl(261, 41%, 36%)
HSVhsv(261, 58%, 51%)
CMYKcmyk(37.7%, 58.5%, 0%, 49%)
CIE-LABlab(29.41, 29.95, -38.73)
CIE-LCHlch(29.41, 48.96, 307.72°)
OKLaboklab(40.41% 0.0558 -0.1098)
OKLCHoklch(40.41% 0.123 296.9)
XYZxyz(8.7408, 5.9992, 21.8122)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513682 #678236
analogous
#364182 #513682 #773682
triadic
#513682 #825136 #368251
tetradic
#513682 #823641 #678236 #368277
square
#513682 #823641 #678236 #368277
split-complementary
#513682 #827736 #418236
monochromatic
#1B122C #362457 #513682 #6C48AD #8D6FC3

Accessibility & contrast

On white

9.55
#513682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#513682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513682
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513682#FFFFFF#000000##FFFFFF
##5136821.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114685
Deuteranopia (green-blind)
#1B4480
Tritanopia (blue-blind)
#464656
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #513682;
/* rgb */ color: rgb(81, 54, 130);
/* oklch */ color: oklch(40.4% 0.123 296.9);
Tailwind
colors: {
  custom: {
    50: '#856ea7',
    500: '#513682',
    950: '#000000',
  },
}
SCSS
$custom: #513682;
$custom-light: #856ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#513682",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 130
  },
  "hsl": {
    "h": 261.316,
    "s": 41.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40406,
    "c": 0.1232,
    "h": 296.9
  },
  "luminance": 0.05999
}

Semantic roles & 50–950 ramp

primary
#513682
secondary
#94AC68
accent
#D157A6
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #513682

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

Preview Lab → · Contrast checker → · Palette generator →

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