#511D7E#511D7E

#511D7E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.154 H 304.0°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#511D7E
RGBrgb(81, 29, 126)
HSLhsl(272, 63%, 30%)
HSVhsv(272, 77%, 49%)
CMYKcmyk(35.7%, 77%, 0%, 50.6%)
CIE-LABlab(24.11, 42.49, -44.78)
CIE-LCHlch(24.11, 61.74, 313.50°)
OKLaboklab(36.49% 0.086 -0.1275)
OKLCHoklch(36.49% 0.154 304)
XYZxyz(7.5977, 4.1344, 20.1324)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D7E #4A7E1D
analogous
#201D7E #511D7E #7E1D7A
triadic
#511D7E #7E511D #1D7E51
tetradic
#511D7E #7E201D #4A7E1D #1D7A7E
square
#511D7E #7E201D #4A7E1D #1D7A7E
split-complementary
#511D7E #7A7E1D #1D7E20
monochromatic
#11061B #31124C #511D7E #7128B0 #9042D3

Accessibility & contrast

On white

11.50
#511D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#511D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D7E
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D7E#FFFFFF#000000##FFFFFF
##511D7E1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#48354C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511d7e;
/* rgb */ color: rgb(81, 29, 126);
/* oklch */ color: oklch(36.5% 0.154 304.0);
Tailwind
colors: {
  custom: {
    50: '#875fa4',
    500: '#511d7e',
    950: '#000000',
  },
}
SCSS
$custom: #511d7e;
$custom-light: #875fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#511d7e",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 272.165,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36488,
    "c": 0.15382,
    "h": 304
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

primary
#511D7E
secondary
#77B145
accent
#E6428E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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