#51164C#51164C

#51164C is a dark, moderate purple. Relative luminance 0.028; OKLCH L 32.0% C 0.112 H 331.4°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#51164C
RGBrgb(81, 22, 76)
HSLhsl(305, 57%, 20%)
HSVhsv(305, 73%, 32%)
CMYKcmyk(0%, 72.8%, 6.2%, 68.2%)
CIE-LABlab(19.41, 34.51, -19.53)
CIE-LCHlch(19.41, 39.65, 330.50°)
OKLaboklab(32% 0.0985 -0.0536)
OKLCHoklch(32% 0.112 331.4)
XYZxyz(4.9847, 2.8453, 7.1227)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51164C #16511B
analogous
#391651 #51164C #51162E
triadic
#51164C #4C5116 #164C51
tetradic
#51164C #513916 #16511B #162E51
square
#51164C #513916 #16511B #162E51
split-complementary
#51164C #2E5116 #165139
monochromatic
#180717 #21091F #51164C #812379 #B130A6

Accessibility & contrast

On white

13.38
#51164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51164C
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51164C#FFFFFF#000000##FFFFFF
##51164C1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A4E
Deuteranopia (green-blind)
#27324A
Tritanopia (blue-blind)
#551C2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51164c;
/* rgb */ color: rgb(81, 22, 76);
/* oklch */ color: oklch(32.0% 0.112 331.4);
Tailwind
colors: {
  custom: {
    50: '#84597e',
    500: '#51164c',
    950: '#000000',
  },
}
SCSS
$custom: #51164c;
$custom-light: #84597e;
$custom-dark: #000000;
JSON
{
  "hex": "#51164c",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 305.085,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31996,
    "c": 0.1122,
    "h": 331.4
  },
  "luminance": 0.02845
}

Semantic roles & 50–950 ramp

primary
#51164C
secondary
#3A8841
accent
#E15447
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51164C

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

Preview Lab → · Contrast checker → · Palette generator →

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