#511072#511072

#511072 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.155 H 310.4°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#511072
RGBrgb(81, 16, 114)
HSLhsl(280, 75%, 25%)
HSVhsv(280, 86%, 45%)
CMYKcmyk(28.9%, 86%, 0%, 55.3%)
CIE-LABlab(21.34, 44.73, -41.63)
CIE-LCHlch(21.34, 61.10, 317.06°)
OKLaboklab(34.23% 0.1005 -0.1182)
OKLCHoklch(34.23% 0.155 310.4)
XYZxyz(6.6153, 3.3350, 16.2116)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511072 #317210
analogous
#201072 #511072 #721062
triadic
#511072 #725110 #107251
tetradic
#511072 #722010 #317210 #106272
square
#511072 #722010 #317210 #106272
split-complementary
#511072 #627210 #107220
monochromatic
#13041B #2B083C #511072 #7718A8 #9D1FDD

Accessibility & contrast

On white

12.60
#511072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511072
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511072#FFFFFF#000000##FFFFFF
##5110721.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#4C2A42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511072;
/* rgb */ color: rgb(81, 16, 114);
/* oklch */ color: oklch(34.2% 0.155 310.4);
Tailwind
colors: {
  custom: {
    50: '#86589b',
    500: '#511072',
    950: '#000000',
  },
}
SCSS
$custom: #511072;
$custom-light: #86589b;
$custom-dark: #000000;
JSON
{
  "hex": "#511072",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 279.796,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34229,
    "c": 0.15515,
    "h": 310.4
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#511072
secondary
#5CA934
accent
#F23675
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511072

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

Preview Lab → · Contrast checker → · Palette generator →

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