#511B79#511B79

#511B79 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.151 H 306.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#511B79
RGBrgb(81, 27, 121)
HSLhsl(274, 64%, 29%)
HSVhsv(274, 78%, 47%)
CMYKcmyk(33.1%, 77.7%, 0%, 52.5%)
CIE-LABlab(23.38, 42.15, -42.79)
CIE-LCHlch(23.38, 60.06, 314.57°)
OKLaboklab(35.85% 0.0891 -0.1217)
OKLCHoklch(35.85% 0.151 306.2)
XYZxyz(7.2357, 3.9137, 18.4597)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B79 #43791B
analogous
#221B79 #511B79 #791B72
triadic
#511B79 #79511B #1B7951
tetradic
#511B79 #79221B #43791B #1B7279
square
#511B79 #79221B #43791B #1B7279
split-complementary
#511B79 #72791B #1B7922
monochromatic
#110619 #301047 #511B79 #7226AB #933BD3

Accessibility & contrast

On white

11.78
#511B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B79
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B79#FFFFFF#000000##FFFFFF
##511B791.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b79;
/* rgb */ color: rgb(81, 27, 121);
/* oklch */ color: oklch(35.8% 0.151 306.2);
Tailwind
colors: {
  custom: {
    50: '#865da0',
    500: '#511b79',
    950: '#000000',
  },
}
SCSS
$custom: #511b79;
$custom-light: #865da0;
$custom-dark: #000000;
JSON
{
  "hex": "#511b79",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 274.468,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35845,
    "c": 0.15079,
    "h": 306.2
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#511B79
secondary
#70AD43
accent
#E74188
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #511B79

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

Preview Lab → · Contrast checker → · Palette generator →

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