#511A79#511A79

#511A79 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.152 H 306.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#511A79
RGBrgb(81, 26, 121)
HSLhsl(275, 65%, 29%)
HSVhsv(275, 79%, 47%)
CMYKcmyk(33.1%, 78.5%, 0%, 52.5%)
CIE-LABlab(23.23, 42.58, -43.04)
CIE-LCHlch(23.23, 60.54, 314.70°)
OKLaboklab(35.74% 0.0901 -0.1224)
OKLCHoklch(35.74% 0.152 306.3)
XYZxyz(7.2132, 3.8687, 18.4522)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A79 #42791A
analogous
#221A79 #511A79 #791A72
triadic
#511A79 #79511A #1A7951
tetradic
#511A79 #79221A #42791A #1A7279
square
#511A79 #79221A #42791A #1A7279
split-complementary
#511A79 #72791A #1A7922
monochromatic
#110519 #2F0F47 #511A79 #7325AB #9339D4

Accessibility & contrast

On white

11.84
#511A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#511A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A79
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A79#FFFFFF#000000##FFFFFF
##511A791.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#4A3248
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511a79;
/* rgb */ color: rgb(81, 26, 121);
/* oklch */ color: oklch(35.7% 0.152 306.3);
Tailwind
colors: {
  custom: {
    50: '#865da0',
    500: '#511a79',
    950: '#000000',
  },
}
SCSS
$custom: #511a79;
$custom-light: #865da0;
$custom-dark: #000000;
JSON
{
  "hex": "#511a79",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 274.737,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.15195,
    "h": 306.3
  },
  "luminance": 0.03869
}

Semantic roles & 50–950 ramp

primary
#511A79
secondary
#6FAD41
accent
#E84087
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #511A79

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

Preview Lab → · Contrast checker → · Palette generator →

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