#511C79#511C79

#511C79 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.150 H 306.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#511C79
RGBrgb(81, 28, 121)
HSLhsl(274, 62%, 29%)
HSVhsv(274, 77%, 47%)
CMYKcmyk(33.1%, 76.9%, 0%, 52.5%)
CIE-LABlab(23.54, 41.71, -42.54)
CIE-LCHlch(23.54, 59.57, 314.44°)
OKLaboklab(35.96% 0.0881 -0.1209)
OKLCHoklch(35.96% 0.15 306.1)
XYZxyz(7.2590, 3.9604, 18.4675)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C79 #44791C
analogous
#231C79 #511C79 #791C73
triadic
#511C79 #79511C #1C7951
tetradic
#511C79 #79231C #44791C #1C7379
square
#511C79 #79231C #44791C #1C7379
split-complementary
#511C79 #73791C #1C7923
monochromatic
#110619 #301047 #511C79 #7228AB #923DD2

Accessibility & contrast

On white

11.72
#511C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#511C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C79
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C79#FFFFFF#000000##FFFFFF
##511C791.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511c79;
/* rgb */ color: rgb(81, 28, 121);
/* oklch */ color: oklch(36.0% 0.150 306.1);
Tailwind
colors: {
  custom: {
    50: '#865ea0',
    500: '#511c79',
    950: '#000000',
  },
}
SCSS
$custom: #511c79;
$custom-light: #865ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#511c79",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 274.194,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35955,
    "c": 0.14961,
    "h": 306.1
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#511C79
secondary
#71AD44
accent
#E54288
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #511C79

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

Preview Lab → · Contrast checker → · Palette generator →

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