#511A71#511A71

#511A71 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.144 H 309.7°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#511A71
RGBrgb(81, 26, 113)
HSLhsl(278, 63%, 27%)
HSVhsv(278, 77%, 44%)
CMYKcmyk(28.3%, 77%, 0%, 55.7%)
CIE-LABlab(22.59, 40.67, -38.96)
CIE-LCHlch(22.59, 56.32, 316.23°)
OKLaboklab(35.08% 0.0917 -0.1104)
OKLCHoklch(35.08% 0.144 309.7)
XYZxyz(6.7428, 3.6805, 15.9748)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A71 #3A711A
analogous
#261A71 #511A71 #711A66
triadic
#511A71 #71511A #1A7151
tetradic
#511A71 #71261A #3A711A #1A6671
square
#511A71 #71261A #3A711A #1A6671
split-complementary
#511A71 #66711A #1A7126
monochromatic
#120619 #2D0F3F #511A71 #7525A3 #9735D0

Accessibility & contrast

On white

12.10
#511A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A71
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A71#FFFFFF#000000##FFFFFF
##511A711.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#05376F
Tritanopia (blue-blind)
#4C2E44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511a71;
/* rgb */ color: rgb(81, 26, 113);
/* oklch */ color: oklch(35.1% 0.144 309.7);
Tailwind
colors: {
  custom: {
    50: '#865d9a',
    500: '#511a71',
    950: '#000000',
  },
}
SCSS
$custom: #511a71;
$custom-light: #865d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511a71",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 277.931,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35079,
    "c": 0.14352,
    "h": 309.7
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#511A71
secondary
#66A641
accent
#E6427E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511A71

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

Preview Lab → · Contrast checker → · Palette generator →

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