#511A75#511A75

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

Color values

HEX#511A75
RGBrgb(81, 26, 117)
HSLhsl(276, 64%, 28%)
HSVhsv(276, 78%, 46%)
CMYKcmyk(30.8%, 77.8%, 0%, 54.1%)
CIE-LABlab(22.91, 41.62, -41.01)
CIE-LCHlch(22.91, 58.43, 315.42°)
OKLaboklab(35.41% 0.0909 -0.1164)
OKLCHoklch(35.41% 0.148 308)
XYZxyz(6.9729, 3.7726, 17.1870)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A75 #3E751A
analogous
#241A75 #511A75 #751A6B
triadic
#511A75 #75511A #1A7551
tetradic
#511A75 #75241A #3E751A #1A6B75
square
#511A75 #75241A #3E751A #1A6B75
split-complementary
#511A75 #6B751A #1A7524
monochromatic
#110619 #2E0F43 #511A75 #7425A7 #9537D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511A75#FFFFFF#000000##FFFFFF
##511A751.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)
#003578
Deuteranopia (green-blind)
#003773
Tritanopia (blue-blind)
#4B3046
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511a75;
/* rgb */ color: rgb(81, 26, 117);
/* oklch */ color: oklch(35.4% 0.148 308.0);
Tailwind
colors: {
  custom: {
    50: '#865d9d',
    500: '#511a75',
    950: '#000000',
  },
}
SCSS
$custom: #511a75;
$custom-light: #865d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511a75",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 117
  },
  "hsl": {
    "h": 276.264,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35405,
    "c": 0.14774,
    "h": 308
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#511A75
secondary
#6AAA41
accent
#E74183
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511A75

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

Preview Lab → · Contrast checker → · Palette generator →

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