#511572#511572

#511572 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.150 H 309.9°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#511572
RGBrgb(81, 21, 114)
HSLhsl(279, 69%, 26%)
HSVhsv(279, 82%, 45%)
CMYKcmyk(28.9%, 81.6%, 0%, 55.3%)
CIE-LABlab(21.95, 42.96, -40.64)
CIE-LCHlch(21.95, 59.14, 316.59°)
OKLaboklab(34.65% 0.0964 -0.1153)
OKLCHoklch(34.65% 0.15 309.9)
XYZxyz(6.6982, 3.5007, 16.2392)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511572 #367215
analogous
#231572 #511572 #721565
triadic
#511572 #725115 #157251
tetradic
#511572 #722315 #367215 #156572
square
#511572 #722315 #367215 #156572
split-complementary
#511572 #657215 #157223
monochromatic
#12051A #2C0B3E #511572 #761FA6 #9A2AD8

Accessibility & contrast

On white

12.35
#511572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511572
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511572#FFFFFF#000000##FFFFFF
##5115721.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#4C2C43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511572;
/* rgb */ color: rgb(81, 21, 114);
/* oklch */ color: oklch(34.7% 0.150 309.9);
Tailwind
colors: {
  custom: {
    50: '#865a9b',
    500: '#511572',
    950: '#000000',
  },
}
SCSS
$custom: #511572;
$custom-light: #865a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#511572",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 278.71,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34654,
    "c": 0.15027,
    "h": 309.9
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#511572
secondary
#62A83B
accent
#EC3C7A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511572

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

Preview Lab → · Contrast checker → · Palette generator →

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