#511E83#511E83

#511E83 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.158 H 302.0°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#511E83
RGBrgb(81, 30, 131)
HSLhsl(270, 63%, 32%)
HSVhsv(270, 77%, 51%)
CMYKcmyk(38.2%, 77.1%, 0%, 48.6%)
CIE-LABlab(24.69, 43.30, -46.99)
CIE-LCHlch(24.69, 63.90, 312.66°)
OKLaboklab(37.03% 0.0838 -0.134)
OKLCHoklch(37.03% 0.158 302)
XYZxyz(7.9534, 4.3165, 21.8825)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E83 #50831E
analogous
#1F1E83 #511E83 #831E83
triadic
#511E83 #83511E #1E8351
tetradic
#511E83 #831F1E #50831E #1E8383
square
#511E83 #831F1E #50831E #1E8383
split-complementary
#511E83 #83831E #1E831F
monochromatic
#13071F #321351 #511E83 #7029B5 #8E47D5

Accessibility & contrast

On white

11.27
#511E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#511E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E83
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E83#FFFFFF#000000##FFFFFF
##511E831.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#46384F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511e83;
/* rgb */ color: rgb(81, 30, 131);
/* oklch */ color: oklch(37.0% 0.158 302.0);
Tailwind
colors: {
  custom: {
    50: '#875fa8',
    500: '#511e83',
    950: '#000000',
  },
}
SCSS
$custom: #511e83;
$custom-light: #875fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#511e83",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 270.297,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37028,
    "c": 0.15811,
    "h": 302
  },
  "luminance": 0.04317
}

Semantic roles & 50–950 ramp

primary
#511E83
secondary
#7EB647
accent
#E64293
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511E83

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

Preview Lab → · Contrast checker → · Palette generator →

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