#511996#511996

#511996 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.183 H 296.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#511996
RGBrgb(81, 25, 150)
HSLhsl(267, 71%, 34%)
HSVhsv(267, 83%, 59%)
CMYKcmyk(46%, 83.3%, 0%, 41.2%)
CIE-LABlab(25.70, 50.19, -57.16)
CIE-LCHlch(25.70, 76.07, 311.29°)
OKLaboklab(38.26% 0.0823 -0.1638)
OKLCHoklch(38.26% 0.183 296.7)
XYZxyz(9.2445, 4.6464, 29.2580)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511996 #5E9619
analogous
#191F96 #511996 #901996
triadic
#511996 #965119 #199651
tetradic
#511996 #96191F #5E9619 #199690
square
#511996 #96191F #5E9619 #199690
split-complementary
#511996 #969019 #1F9619
monochromatic
#18082D #351062 #511996 #6D22CA #8D49E1

Accessibility & contrast

On white

10.88
#511996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#511996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511996
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511996#FFFFFF#000000##FFFFFF
##5119961.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#3E3E59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #511996;
/* rgb */ color: rgb(81, 25, 150);
/* oklch */ color: oklch(38.3% 0.183 296.7);
Tailwind
colors: {
  custom: {
    50: '#8a5eb6',
    500: '#511996',
    950: '#000000',
  },
}
SCSS
$custom: #511996;
$custom-light: #8a5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#511996",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 266.88,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38264,
    "c": 0.18334,
    "h": 296.7
  },
  "luminance": 0.04647
}

Semantic roles & 50–950 ramp

primary
#511996
secondary
#8CC249
accent
#EE3A9D
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #511996

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

Preview Lab → · Contrast checker → · Palette generator →

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