#511D79#511D79

#511D79 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.148 H 305.9°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#511D79
RGBrgb(81, 29, 121)
HSLhsl(274, 61%, 29%)
HSVhsv(274, 76%, 47%)
CMYKcmyk(33.1%, 76%, 0%, 52.5%)
CIE-LABlab(23.70, 41.25, -42.28)
CIE-LCHlch(23.70, 59.07, 314.30°)
OKLaboklab(36.07% 0.0871 -0.1202)
OKLCHoklch(36.07% 0.148 305.9)
XYZxyz(7.2831, 4.0086, 18.4755)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D79 #45791D
analogous
#231D79 #511D79 #791D73
triadic
#511D79 #79511D #1D7951
tetradic
#511D79 #79231D #45791D #1D7379
square
#511D79 #79231D #45791D #1D7379
split-complementary
#511D79 #73791D #1D7923
monochromatic
#110619 #301148 #511D79 #7229AA #923FD1

Accessibility & contrast

On white

11.66
#511D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#511D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D79
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D79#FFFFFF#000000##FFFFFF
##511D791.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#4A3349
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511d79;
/* rgb */ color: rgb(81, 29, 121);
/* oklch */ color: oklch(36.1% 0.148 305.9);
Tailwind
colors: {
  custom: {
    50: '#865ea0',
    500: '#511d79',
    950: '#000000',
  },
}
SCSS
$custom: #511d79;
$custom-light: #865ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#511d79",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 273.913,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36068,
    "c": 0.14839,
    "h": 305.9
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#511D79
secondary
#72AD45
accent
#E44389
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #511D79

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

Preview Lab → · Contrast checker → · Palette generator →

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