#511E81#511E81

#511E81 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.156 H 302.7°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#511E81
RGBrgb(81, 30, 129)
HSLhsl(271, 62%, 31%)
HSVhsv(271, 77%, 51%)
CMYKcmyk(37.2%, 76.7%, 0%, 49.4%)
CIE-LABlab(24.52, 42.80, -46.01)
CIE-LCHlch(24.52, 62.84, 312.93°)
OKLaboklab(36.86% 0.0843 -0.1312)
OKLCHoklch(36.86% 0.156 302.7)
XYZxyz(7.8191, 4.2628, 21.1755)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E81 #4E811E
analogous
#1F1E81 #511E81 #811E7F
triadic
#511E81 #81511E #1E8151
tetradic
#511E81 #811F1E #4E811E #1E7F81
square
#511E81 #811F1E #4E811E #1E7F81
split-complementary
#511E81 #7F811E #1E811F
monochromatic
#13071E #32124F #511E81 #702AB3 #8F46D4

Accessibility & contrast

On white

11.34
#511E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#511E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E81
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E81#FFFFFF#000000##FFFFFF
##511E811.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#47374E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511e81;
/* rgb */ color: rgb(81, 30, 129);
/* oklch */ color: oklch(36.9% 0.156 302.7);
Tailwind
colors: {
  custom: {
    50: '#875fa6',
    500: '#511e81',
    950: '#000000',
  },
}
SCSS
$custom: #511e81;
$custom-light: #875fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#511e81",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 270.909,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36856,
    "c": 0.15592,
    "h": 302.7
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#511E81
secondary
#7CB447
accent
#E54291
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511E81

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

Preview Lab → · Contrast checker → · Palette generator →

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