#511E96#511E96

#511E96 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.179 H 296.1°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#511E96
RGBrgb(81, 30, 150)
HSLhsl(266, 67%, 35%)
HSVhsv(266, 80%, 59%)
CMYKcmyk(46%, 80%, 0%, 41.2%)
CIE-LABlab(26.39, 48.19, -56.03)
CIE-LCHlch(26.39, 73.91, 310.70°)
OKLaboklab(38.74% 0.0786 -0.1606)
OKLCHoklch(38.74% 0.179 296.1)
XYZxyz(9.3612, 4.8797, 29.2969)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E96 #63961E
analogous
#1E2796 #511E96 #8D1E96
triadic
#511E96 #96511E #1E9651
tetradic
#511E96 #961E27 #63961E #1E968D
square
#511E96 #961E27 #63961E #1E968D
split-complementary
#511E96 #968D1E #27961E
monochromatic
#1A0A30 #351463 #511E96 #6D28C9 #8D52DC

Accessibility & contrast

On white

10.63
#511E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#511E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E96
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E96#FFFFFF#000000##FFFFFF
##511E961.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511e96;
/* rgb */ color: rgb(81, 30, 150);
/* oklch */ color: oklch(38.7% 0.179 296.1);
Tailwind
colors: {
  custom: {
    50: '#8961b6',
    500: '#511e96',
    950: '#000000',
  },
}
SCSS
$custom: #511e96;
$custom-light: #8961b6;
$custom-dark: #000000;
JSON
{
  "hex": "#511e96",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 265.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3874,
    "c": 0.17878,
    "h": 296.1
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#511E96
secondary
#90BF50
accent
#EA3EA1
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511E96

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

Preview Lab → · Contrast checker → · Palette generator →

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