#511E66#511E66

#511E66 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.126 H 314.4°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#511E66
RGBrgb(81, 30, 102)
HSLhsl(283, 55%, 26%)
HSVhsv(283, 71%, 40%)
CMYKcmyk(20.6%, 70.6%, 0%, 60%)
CIE-LABlab(22.43, 36.21, -32.06)
CIE-LCHlch(22.43, 48.36, 318.47°)
OKLaboklab(34.71% 0.0885 -0.0902)
OKLCHoklch(34.71% 0.126 314.4)
XYZxyz(6.2555, 3.6374, 12.9404)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E66 #33661E
analogous
#2D1E66 #511E66 #661E57
triadic
#511E66 #66511E #1E6651
tetradic
#511E66 #662D1E #33661E #1E5766
square
#511E66 #662D1E #33661E #1E5766
split-complementary
#511E66 #57661E #1E662D
monochromatic
#130718 #2B1037 #511E66 #772C95 #9C3AC5

Accessibility & contrast

On white

12.16
#511E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511E66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E66
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E66#FFFFFF#000000##FFFFFF
##511E661.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#1B3764
Tritanopia (blue-blind)
#4F2C3F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511e66;
/* rgb */ color: rgb(81, 30, 102);
/* oklch */ color: oklch(34.7% 0.126 314.4);
Tailwind
colors: {
  custom: {
    50: '#855e92',
    500: '#511e66',
    950: '#000000',
  },
}
SCSS
$custom: #511e66;
$custom-light: #855e92;
$custom-dark: #000000;
JSON
{
  "hex": "#511e66",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 102
  },
  "hsl": {
    "h": 282.5,
    "s": 54.545,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34711,
    "c": 0.12634,
    "h": 314.4
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#511E66
secondary
#5E9B45
accent
#DE4A75
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511E66

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

Preview Lab → · Contrast checker → · Palette generator →

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