#511F80#511F80

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

Color values

HEX#511F80
RGBrgb(81, 31, 128)
HSLhsl(271, 61%, 31%)
HSVhsv(271, 76%, 50%)
CMYKcmyk(36.7%, 75.8%, 0%, 49.8%)
CIE-LABlab(24.60, 42.08, -45.25)
CIE-LCHlch(24.60, 61.79, 312.92°)
OKLaboklab(36.89% 0.0835 -0.1289)
OKLCHoklch(36.89% 0.154 302.9)
XYZxyz(7.7787, 4.2878, 20.8357)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F80 #4E801F
analogous
#201F80 #511F80 #801F7E
triadic
#511F80 #80511F #1F8051
tetradic
#511F80 #80201F #4E801F #1F7E80
square
#511F80 #80201F #4E801F #1F7E80
split-complementary
#511F80 #7E801F #1F8020
monochromatic
#13071D #32134F #511F80 #702BB1 #8F47D2

Accessibility & contrast

On white

11.30
#511F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F80
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F80#FFFFFF#000000##FFFFFF
##511F801.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511f80;
/* rgb */ color: rgb(81, 31, 128);
/* oklch */ color: oklch(36.9% 0.154 302.9);
Tailwind
colors: {
  custom: {
    50: '#8760a6',
    500: '#511f80',
    950: '#000000',
  },
}
SCSS
$custom: #511f80;
$custom-light: #8760a6;
$custom-dark: #000000;
JSON
{
  "hex": "#511f80",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 270.928,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36886,
    "c": 0.15364,
    "h": 302.9
  },
  "luminance": 0.04288
}

Semantic roles & 50–950 ramp

primary
#511F80
secondary
#7CB348
accent
#E44491
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511F80

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

Preview Lab → · Contrast checker → · Palette generator →

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