#51164D#51164D

#51164D is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.113 H 330.7°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#51164D
RGBrgb(81, 22, 77)
HSLhsl(304, 57%, 20%)
HSVhsv(304, 73%, 32%)
CMYKcmyk(0%, 72.8%, 4.9%, 68.2%)
CIE-LABlab(19.47, 34.70, -20.12)
CIE-LCHlch(19.47, 40.11, 329.90°)
OKLaboklab(32.06% 0.0986 -0.0553)
OKLCHoklch(32.06% 0.113 330.7)
XYZxyz(5.0198, 2.8593, 7.3073)
Luminance0.0286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51164D #16511A
analogous
#381651 #51164D #51162F
triadic
#51164D #4D5116 #164D51
tetradic
#51164D #513816 #16511A #162F51
square
#51164D #513816 #16511A #162F51
split-complementary
#51164D #2F5116 #165138
monochromatic
#180717 #21091F #51164D #81237B #B130A9

Accessibility & contrast

On white

13.36
#51164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#51164D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51164D
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51164D#FFFFFF#000000##FFFFFF
##51164D1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A4F
Deuteranopia (green-blind)
#27324B
Tritanopia (blue-blind)
#541D2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51164d;
/* rgb */ color: rgb(81, 22, 77);
/* oklch */ color: oklch(32.1% 0.113 330.7);
Tailwind
colors: {
  custom: {
    50: '#84597f',
    500: '#51164d',
    950: '#000000',
  },
}
SCSS
$custom: #51164d;
$custom-light: #84597f;
$custom-dark: #000000;
JSON
{
  "hex": "#51164d",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 304.068,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32057,
    "c": 0.1131,
    "h": 330.7
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#51164D
secondary
#3A8840
accent
#E15247
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51164D

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

Preview Lab → · Contrast checker → · Palette generator →

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