#511C67#511C67

#511C67 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.5% C 0.130 H 314.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#511C67
RGBrgb(81, 28, 103)
HSLhsl(282, 57%, 26%)
HSVhsv(282, 73%, 40%)
CMYKcmyk(21.4%, 72.8%, 0%, 59.6%)
CIE-LABlab(22.16, 37.41, -33.16)
CIE-LCHlch(22.16, 49.99, 318.44°)
OKLaboklab(34.53% 0.0908 -0.0934)
OKLCHoklch(34.53% 0.13 314.2)
XYZxyz(6.2564, 3.5593, 13.1868)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C67 #32671C
analogous
#2B1C67 #511C67 #671C57
triadic
#511C67 #67511C #1C6751
tetradic
#511C67 #672B1C #32671C #1C5767
square
#511C67 #672B1C #32671C #1C5767
split-complementary
#511C67 #57671C #1C672B
monochromatic
#130718 #2B0F37 #511C67 #772997 #9D36C7

Accessibility & contrast

On white

12.27
#511C67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C67
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C67#FFFFFF#000000##FFFFFF
##511C671.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003269
Deuteranopia (green-blind)
#183665
Tritanopia (blue-blind)
#4F2B3F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511c67;
/* rgb */ color: rgb(81, 28, 103);
/* oklch */ color: oklch(34.5% 0.130 314.2);
Tailwind
colors: {
  custom: {
    50: '#855d93',
    500: '#511c67',
    950: '#000000',
  },
}
SCSS
$custom: #511c67;
$custom-light: #855d93;
$custom-dark: #000000;
JSON
{
  "hex": "#511c67",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 103
  },
  "hsl": {
    "h": 282.4,
    "s": 57.252,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34535,
    "c": 0.1303,
    "h": 314.2
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#511C67
secondary
#5D9C43
accent
#E14774
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511C67

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

Preview Lab → · Contrast checker → · Palette generator →

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