#511C66#511C66

#511C66 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.129 H 314.7°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#511C66
RGBrgb(81, 28, 102)
HSLhsl(283, 57%, 25%)
HSVhsv(283, 73%, 40%)
CMYKcmyk(20.6%, 72.5%, 0%, 60%)
CIE-LABlab(22.09, 37.18, -32.62)
CIE-LCHlch(22.09, 49.46, 318.73°)
OKLaboklab(34.46% 0.0909 -0.0918)
OKLCHoklch(34.46% 0.129 314.7)
XYZxyz(6.2065, 3.5394, 12.9240)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C66 #31661C
analogous
#2C1C66 #511C66 #661C56
triadic
#511C66 #66511C #1C6651
tetradic
#511C66 #662C1C #31661C #1C5666
square
#511C66 #662C1C #31661C #1C5666
split-complementary
#511C66 #56661C #1C662C
monochromatic
#130718 #2B0F36 #511C66 #772996 #9D36C6

Accessibility & contrast

On white

12.30
#511C66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511C66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C66
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C66#FFFFFF#000000##FFFFFF
##511C661.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#193664
Tritanopia (blue-blind)
#4F2B3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511c66;
/* rgb */ color: rgb(81, 28, 102);
/* oklch */ color: oklch(34.5% 0.129 314.7);
Tailwind
colors: {
  custom: {
    50: '#855d92',
    500: '#511c66',
    950: '#000000',
  },
}
SCSS
$custom: #511c66;
$custom-light: #855d92;
$custom-dark: #000000;
JSON
{
  "hex": "#511c66",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 102
  },
  "hsl": {
    "h": 282.973,
    "s": 56.923,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34462,
    "c": 0.12923,
    "h": 314.7
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#511C66
secondary
#5C9B43
accent
#E04873
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511C66

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

Preview Lab → · Contrast checker → · Palette generator →

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