#511D7A#511D7A

#511D7A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.149 H 305.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#511D7A
RGBrgb(81, 29, 122)
HSLhsl(274, 62%, 30%)
HSVhsv(274, 76%, 48%)
CMYKcmyk(33.6%, 76.2%, 0%, 52.2%)
CIE-LABlab(23.78, 41.50, -42.78)
CIE-LCHlch(23.78, 59.60, 314.13°)
OKLaboklab(36.15% 0.0868 -0.1217)
OKLCHoklch(36.15% 0.149 305.5)
XYZxyz(7.3448, 4.0333, 18.8001)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D7A #467A1D
analogous
#221D7A #511D7A #7A1D75
triadic
#511D7A #7A511D #1D7A51
tetradic
#511D7A #7A221D #467A1D #1D757A
square
#511D7A #7A221D #467A1D #1D757A
split-complementary
#511D7A #757A1D #1D7A22
monochromatic
#100619 #301149 #511D7A #7229AB #9140D2

Accessibility & contrast

On white

11.62
#511D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D7A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D7A#FFFFFF#000000##FFFFFF
##511D7A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#4A334A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511d7a;
/* rgb */ color: rgb(81, 29, 122);
/* oklch */ color: oklch(36.2% 0.149 305.5);
Tailwind
colors: {
  custom: {
    50: '#865fa1',
    500: '#511d7a',
    950: '#000000',
  },
}
SCSS
$custom: #511d7a;
$custom-light: #865fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#511d7a",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 273.548,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36151,
    "c": 0.14948,
    "h": 305.5
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#511D7A
secondary
#73AE45
accent
#E5438A
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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