#511E85#511E85

#511E85 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.160 H 301.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#511E85
RGBrgb(81, 30, 133)
HSLhsl(270, 63%, 32%)
HSVhsv(270, 77%, 52%)
CMYKcmyk(39.1%, 77.4%, 0%, 47.8%)
CIE-LABlab(24.86, 43.81, -47.97)
CIE-LCHlch(24.86, 64.96, 312.41°)
OKLaboklab(37.2% 0.0833 -0.1369)
OKLCHoklch(37.2% 0.16 301.3)
XYZxyz(8.0902, 4.3713, 22.6033)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E85 #52851E
analogous
#1E1E85 #511E85 #851E85
triadic
#511E85 #85511E #1E8551
tetradic
#511E85 #851E1E #52851E #1E8585
square
#511E85 #851E1E #52851E #1E8585
split-complementary
#511E85 #85851E #1E851E
monochromatic
#140721 #331353 #511E85 #6F29B7 #8E48D6

Accessibility & contrast

On white

11.20
#511E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#511E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E85
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E85#FFFFFF#000000##FFFFFF
##511E851.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003A83
Tritanopia (blue-blind)
#463950
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511e85;
/* rgb */ color: rgb(81, 30, 133);
/* oklch */ color: oklch(37.2% 0.160 301.3);
Tailwind
colors: {
  custom: {
    50: '#8760a9',
    500: '#511e85',
    950: '#000000',
  },
}
SCSS
$custom: #511e85;
$custom-light: #8760a9;
$custom-dark: #000000;
JSON
{
  "hex": "#511e85",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 269.709,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37202,
    "c": 0.16029,
    "h": 301.3
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#511E85
secondary
#80B847
accent
#E64295
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511E85

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

Preview Lab → · Contrast checker → · Palette generator →

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