#511B73#511B73

#511B73 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.144 H 308.7°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#511B73
RGBrgb(81, 27, 115)
HSLhsl(277, 62%, 28%)
HSVhsv(277, 77%, 45%)
CMYKcmyk(29.6%, 76.5%, 0%, 54.9%)
CIE-LABlab(22.90, 40.70, -39.74)
CIE-LCHlch(22.90, 56.88, 315.69°)
OKLaboklab(35.35% 0.0903 -0.1127)
OKLCHoklch(35.35% 0.144 308.7)
XYZxyz(6.8792, 3.7711, 16.5818)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B73 #3D731B
analogous
#251B73 #511B73 #731B69
triadic
#511B73 #73511B #1B7351
tetradic
#511B73 #73251B #3D731B #1B6973
square
#511B73 #73251B #3D731B #1B6973
split-complementary
#511B73 #69731B #1B7325
monochromatic
#110619 #2E0F41 #511B73 #7427A5 #9538D0

Accessibility & contrast

On white

11.97
#511B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#511B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B73
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B73#FFFFFF#000000##FFFFFF
##511B731.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#023771
Tritanopia (blue-blind)
#4C3045
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511b73;
/* rgb */ color: rgb(81, 27, 115);
/* oklch */ color: oklch(35.4% 0.144 308.7);
Tailwind
colors: {
  custom: {
    50: '#865d9c',
    500: '#511b73',
    950: '#000000',
  },
}
SCSS
$custom: #511b73;
$custom-light: #865d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#511b73",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 276.818,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35351,
    "c": 0.14441,
    "h": 308.7
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#511B73
secondary
#69A842
accent
#E54381
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511B73

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

Preview Lab → · Contrast checker → · Palette generator →

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