#511667#511667

#511667 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.138 H 314.9°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#511667
RGBrgb(81, 22, 103)
HSLhsl(284, 65%, 25%)
HSVhsv(284, 79%, 40%)
CMYKcmyk(21.4%, 78.6%, 0%, 59.6%)
CIE-LABlab(21.22, 40.07, -34.68)
CIE-LCHlch(21.22, 52.99, 319.13°)
OKLaboklab(33.87% 0.0975 -0.0978)
OKLCHoklch(33.87% 0.138 314.9)
XYZxyz(6.1280, 3.3026, 13.1440)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511667 #2C6716
analogous
#291667 #511667 #671655
triadic
#511667 #675116 #166751
tetradic
#511667 #672916 #2C6716 #165567
square
#511667 #672916 #2C6716 #165567
split-complementary
#511667 #556716 #166729
monochromatic
#140519 #290B35 #511667 #792199 #A02CCC

Accessibility & contrast

On white

12.65
#511667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511667
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511667#FFFFFF#000000##FFFFFF
##5116671.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#123465
Tritanopia (blue-blind)
#4F283D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511667;
/* rgb */ color: rgb(81, 22, 103);
/* oklch */ color: oklch(33.9% 0.138 314.9);
Tailwind
colors: {
  custom: {
    50: '#855a93',
    500: '#511667',
    950: '#000000',
  },
}
SCSS
$custom: #511667;
$custom-light: #855a93;
$custom-dark: #000000;
JSON
{
  "hex": "#511667",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 283.704,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33866,
    "c": 0.13813,
    "h": 314.9
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#511667
secondary
#569E3B
accent
#E8406E
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511667

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

Preview Lab → · Contrast checker → · Palette generator →

#511667 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva