#511A80#511A80

#511A80 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.159 H 303.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#511A80
RGBrgb(81, 26, 128)
HSLhsl(272, 66%, 30%)
HSVhsv(272, 80%, 50%)
CMYKcmyk(36.7%, 79.7%, 0%, 49.8%)
CIE-LABlab(23.82, 44.30, -46.51)
CIE-LCHlch(23.82, 64.23, 313.60°)
OKLaboklab(36.34% 0.0883 -0.1326)
OKLCHoklch(36.34% 0.159 303.7)
XYZxyz(7.6581, 4.0466, 20.7955)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A80 #49801A
analogous
#1E1A80 #511A80 #801A7C
triadic
#511A80 #80511A #1A8051
tetradic
#511A80 #801E1A #49801A #1A7C80
square
#511A80 #801E1A #49801A #1A7C80
split-complementary
#511A80 #7C801A #1A801E
monochromatic
#11051A #31104D #511A80 #7124B3 #903DD8

Accessibility & contrast

On white

11.61
#511A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A80
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A80#FFFFFF#000000##FFFFFF
##511A801.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#48354C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511a80;
/* rgb */ color: rgb(81, 26, 128);
/* oklch */ color: oklch(36.3% 0.159 303.7);
Tailwind
colors: {
  custom: {
    50: '#875da6',
    500: '#511a80',
    950: '#000000',
  },
}
SCSS
$custom: #511a80;
$custom-light: #875da6;
$custom-dark: #000000;
JSON
{
  "hex": "#511a80",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 272.353,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3634,
    "c": 0.15933,
    "h": 303.7
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#511A80
secondary
#76B442
accent
#E93F8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511A80

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

Preview Lab → · Contrast checker → · Palette generator →

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