#51164E#51164E

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

Color values

HEX#51164E
RGBrgb(81, 22, 78)
HSLhsl(303, 57%, 20%)
HSVhsv(303, 73%, 32%)
CMYKcmyk(0%, 72.8%, 3.7%, 68.2%)
CIE-LABlab(19.53, 34.89, -20.71)
CIE-LCHlch(19.53, 40.57, 329.31°)
OKLaboklab(32.12% 0.0987 -0.057)
OKLCHoklch(32.12% 0.114 330)
XYZxyz(5.0554, 2.8736, 7.4946)
Luminance0.0287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51164E #165119
analogous
#361651 #51164E #511630
triadic
#51164E #4E5116 #164E51
tetradic
#51164E #513616 #165119 #163051
square
#51164E #513616 #165119 #163051
split-complementary
#51164E #305116 #165136
monochromatic
#180717 #210920 #51164E #81237C #B130AB

Accessibility & contrast

On white

13.34
#51164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51164E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51164E#FFFFFF#000000##FFFFFF
##51164E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102A50
Deuteranopia (green-blind)
#26324C
Tritanopia (blue-blind)
#541D30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51164e;
/* rgb */ color: rgb(81, 22, 78);
/* oklch */ color: oklch(32.1% 0.114 330.0);
Tailwind
colors: {
  custom: {
    50: '#845980',
    500: '#51164e',
    950: '#000000',
  },
}
SCSS
$custom: #51164e;
$custom-light: #845980;
$custom-dark: #000000;
JSON
{
  "hex": "#51164e",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 303.051,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32118,
    "c": 0.114,
    "h": 330
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#51164E
secondary
#3A883E
accent
#E14F47
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51164E

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

Preview Lab → · Contrast checker → · Palette generator →

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