#513196#513196

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

Color values

HEX#513196
RGBrgb(81, 49, 150)
HSLhsl(259, 51%, 39%)
HSVhsv(259, 67%, 59%)
CMYKcmyk(46%, 67.3%, 0%, 41.2%)
CIE-LABlab(29.78, 38.67, -50.49)
CIE-LCHlch(29.78, 63.60, 307.45°)
OKLaboklab(41.14% 0.0606 -0.1444)
OKLCHoklch(41.14% 0.157 292.8)
XYZxyz(9.9952, 6.1477, 29.5082)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513196 #769631
analogous
#314496 #513196 #843196
triadic
#513196 #965131 #319651
tetradic
#513196 #963144 #769631 #319684
square
#513196 #963144 #769631 #319684
split-complementary
#513196 #968431 #449631
monochromatic
#1F133A #382268 #513196 #6B43C1 #8F71D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##513196#FFFFFF#000000##FFFFFF
##5131961.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)
#004799
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#3D495F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #513196;
/* rgb */ color: rgb(81, 49, 150);
/* oklch */ color: oklch(41.1% 0.157 292.8);
Tailwind
colors: {
  custom: {
    50: '#886bb6',
    500: '#513196',
    950: '#000000',
  },
}
SCSS
$custom: #513196;
$custom-light: #886bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#513196",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 259.01,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41144,
    "c": 0.15662,
    "h": 292.8
  },
  "luminance": 0.06148
}

Semantic roles & 50–950 ramp

primary
#513196
secondary
#A0B86A
accent
#DA4EAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #513196

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

Preview Lab → · Contrast checker → · Palette generator →

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