#511979#511979

#511979 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.153 H 306.5°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#511979
RGBrgb(81, 25, 121)
HSLhsl(275, 66%, 29%)
HSVhsv(275, 79%, 47%)
CMYKcmyk(33.1%, 79.3%, 0%, 52.5%)
CIE-LABlab(23.08, 43.01, -43.28)
CIE-LCHlch(23.08, 61.01, 314.82°)
OKLaboklab(35.64% 0.091 -0.1231)
OKLCHoklch(35.64% 0.153 306.5)
XYZxyz(7.1914, 3.8251, 18.4449)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511979 #417919
analogous
#211979 #511979 #791971
triadic
#511979 #795119 #197951
tetradic
#511979 #792119 #417919 #197179
square
#511979 #792119 #417919 #197179
split-complementary
#511979 #717919 #197921
monochromatic
#110519 #2F0F46 #511979 #7323AC #9337D6

Accessibility & contrast

On white

11.90
#511979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#511979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511979
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511979#FFFFFF#000000##FFFFFF
##5119791.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#4A3148
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511979;
/* rgb */ color: rgb(81, 25, 121);
/* oklch */ color: oklch(35.6% 0.153 306.5);
Tailwind
colors: {
  custom: {
    50: '#865da0',
    500: '#511979',
    950: '#000000',
  },
}
SCSS
$custom: #511979;
$custom-light: #865da0;
$custom-dark: #000000;
JSON
{
  "hex": "#511979",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 275,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35635,
    "c": 0.15308,
    "h": 306.5
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#511979
secondary
#6EAE40
accent
#E93F86
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #511979

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

Preview Lab → · Contrast checker → · Palette generator →

#511979 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva