#511F66#511F66

#511F66 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.8% C 0.125 H 314.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#511F66
RGBrgb(81, 31, 102)
HSLhsl(282, 53%, 26%)
HSVhsv(282, 70%, 40%)
CMYKcmyk(20.6%, 69.6%, 0%, 60%)
CIE-LABlab(22.61, 35.71, -31.78)
CIE-LCHlch(22.61, 47.80, 318.33°)
OKLaboklab(34.84% 0.0872 -0.0894)
OKLCHoklch(34.84% 0.125 314.3)
XYZxyz(6.2812, 3.6888, 12.9489)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F66 #34661F
analogous
#2D1F66 #511F66 #661F57
triadic
#511F66 #66511F #1F6651
tetradic
#511F66 #662D1F #34661F #1F5766
square
#511F66 #662D1F #34661F #1F5766
split-complementary
#511F66 #57661F #1F662D
monochromatic
#130717 #2C1137 #511F66 #762D95 #9B3CC4

Accessibility & contrast

On white

12.08
#511F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F66
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F66#FFFFFF#000000##FFFFFF
##511F661.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511f66;
/* rgb */ color: rgb(81, 31, 102);
/* oklch */ color: oklch(34.8% 0.125 314.3);
Tailwind
colors: {
  custom: {
    50: '#845f92',
    500: '#511f66',
    950: '#000000',
  },
}
SCSS
$custom: #511f66;
$custom-light: #845f92;
$custom-dark: #000000;
JSON
{
  "hex": "#511f66",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 102
  },
  "hsl": {
    "h": 282.254,
    "s": 53.383,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34841,
    "c": 0.12485,
    "h": 314.3
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#511F66
secondary
#5F9A46
accent
#DD4B76
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511F66

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

Preview Lab → · Contrast checker → · Palette generator →

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