#511D6E#511D6E

#511D6E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.136 H 310.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#511D6E
RGBrgb(81, 29, 110)
HSLhsl(279, 58%, 27%)
HSVhsv(279, 74%, 43%)
CMYKcmyk(26.4%, 73.6%, 0%, 56.9%)
CIE-LABlab(22.84, 38.58, -36.61)
CIE-LCHlch(22.84, 53.18, 316.50°)
OKLaboklab(35.19% 0.0889 -0.1035)
OKLCHoklch(35.19% 0.136 310.6)
XYZxyz(6.6466, 3.7540, 15.1233)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D6E #3A6E1D
analogous
#291D6E #511D6E #6E1D62
triadic
#511D6E #6E511D #1D6E51
tetradic
#511D6E #6E291D #3A6E1D #1D626E
square
#511D6E #6E291D #3A6E1D #1D626E
split-complementary
#511D6E #626E1D #1D6E29
monochromatic
#120618 #2D103E #511D6E #752A9E #973ACB

Accessibility & contrast

On white

11.99
#511D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D6E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D6E#FFFFFF#000000##FFFFFF
##511D6E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#10376C
Tritanopia (blue-blind)
#4D2F43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511d6e;
/* rgb */ color: rgb(81, 29, 110);
/* oklch */ color: oklch(35.2% 0.136 310.6);
Tailwind
colors: {
  custom: {
    50: '#855e98',
    500: '#511d6e',
    950: '#000000',
  },
}
SCSS
$custom: #511d6e;
$custom-light: #855e98;
$custom-dark: #000000;
JSON
{
  "hex": "#511d6e",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 278.519,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35187,
    "c": 0.13645,
    "h": 310.6
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#511D6E
secondary
#66A244
accent
#E1467E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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