#511D96#511D96

#511D96 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.180 H 296.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#511D96
RGBrgb(81, 29, 150)
HSLhsl(266, 68%, 35%)
HSVhsv(266, 81%, 59%)
CMYKcmyk(46%, 80.7%, 0%, 41.2%)
CIE-LABlab(26.24, 48.61, -56.27)
CIE-LCHlch(26.24, 74.36, 310.82°)
OKLaboklab(38.64% 0.0794 -0.1613)
OKLCHoklch(38.64% 0.18 296.2)
XYZxyz(9.3363, 4.8298, 29.2886)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D96 #62961D
analogous
#1D2696 #511D96 #8D1D96
triadic
#511D96 #96511D #1D9651
tetradic
#511D96 #961D26 #62961D #1D968D
square
#511D96 #961D26 #62961D #1D968D
split-complementary
#511D96 #968D1D #26961D
monochromatic
#1A092F #351363 #511D96 #6D27C9 #8D50DD

Accessibility & contrast

On white

10.68
#511D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#511D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D96
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D96#FFFFFF#000000##FFFFFF
##511D961.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#3E3F5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #511d96;
/* rgb */ color: rgb(81, 29, 150);
/* oklch */ color: oklch(38.6% 0.180 296.2);
Tailwind
colors: {
  custom: {
    50: '#8960b6',
    500: '#511d96',
    950: '#000000',
  },
}
SCSS
$custom: #511d96;
$custom-light: #8960b6;
$custom-dark: #000000;
JSON
{
  "hex": "#511d96",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 265.785,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38639,
    "c": 0.17974,
    "h": 296.2
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#511D96
secondary
#8FC04F
accent
#EA3DA0
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511D96

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

Preview Lab → · Contrast checker → · Palette generator →

#511D96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva