#511F84#511F84

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

Color values

HEX#511F84
RGBrgb(81, 31, 132)
HSLhsl(270, 62%, 32%)
HSVhsv(270, 77%, 52%)
CMYKcmyk(38.6%, 76.5%, 0%, 48.2%)
CIE-LABlab(24.94, 43.10, -47.22)
CIE-LCHlch(24.94, 63.93, 312.39°)
OKLaboklab(37.23% 0.0826 -0.1347)
OKLCHoklch(37.23% 0.158 301.5)
XYZxyz(8.0472, 4.3952, 22.2497)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F84 #52841F
analogous
#1F2084 #511F84 #841F84
triadic
#511F84 #84511F #1F8451
tetradic
#511F84 #841F20 #52841F #1F8484
square
#511F84 #841F20 #52841F #1F8484
split-complementary
#511F84 #84841F #20841F
monochromatic
#140821 #331352 #511F84 #6F2BB6 #8E49D4

Accessibility & contrast

On white

11.18
#511F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#511F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F84
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F84#FFFFFF#000000##FFFFFF
##511F841.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511f84;
/* rgb */ color: rgb(81, 31, 132);
/* oklch */ color: oklch(37.2% 0.158 301.5);
Tailwind
colors: {
  custom: {
    50: '#8760a9',
    500: '#511f84',
    950: '#000000',
  },
}
SCSS
$custom: #511f84;
$custom-light: #8760a9;
$custom-dark: #000000;
JSON
{
  "hex": "#511f84",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 269.703,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37228,
    "c": 0.15806,
    "h": 301.5
  },
  "luminance": 0.04395
}

Semantic roles & 50–950 ramp

primary
#511F84
secondary
#80B748
accent
#E54395
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511F84

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

Preview Lab → · Contrast checker → · Palette generator →

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