#51166D#51166D

#51166D is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.144 H 312.0°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#51166D
RGBrgb(81, 22, 109)
HSLhsl(281, 66%, 26%)
HSVhsv(281, 80%, 43%)
CMYKcmyk(25.7%, 79.8%, 0%, 57.3%)
CIE-LABlab(21.68, 41.42, -37.84)
CIE-LCHlch(21.68, 56.10, 317.59°)
OKLaboklab(34.34% 0.0965 -0.1071)
OKLCHoklch(34.34% 0.144 312)
XYZxyz(6.4401, 3.4275, 14.7873)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51166D #326D16
analogous
#26166D #51166D #6D165D
triadic
#51166D #6D5116 #166D51
tetradic
#51166D #6D2616 #326D16 #165D6D
square
#51166D #6D2616 #326D16 #165D6D
split-complementary
#51166D #5D6D16 #166D26
monochromatic
#130519 #2B0C3A #51166D #7720A0 #9D2BD3

Accessibility & contrast

On white

12.46
#51166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#51166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51166D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51166D#FFFFFF#000000##FFFFFF
##51166D1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#07356B
Tritanopia (blue-blind)
#4E2A41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51166d;
/* rgb */ color: rgb(81, 22, 109);
/* oklch */ color: oklch(34.3% 0.144 312.0);
Tailwind
colors: {
  custom: {
    50: '#855a97',
    500: '#51166d',
    950: '#000000',
  },
}
SCSS
$custom: #51166d;
$custom-light: #855a97;
$custom-dark: #000000;
JSON
{
  "hex": "#51166d",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 280.69,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3434,
    "c": 0.14415,
    "h": 312
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#51166D
secondary
#5DA33C
accent
#E93E75
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51166D

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

Preview Lab → · Contrast checker → · Palette generator →

#51166D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva