#51164F#51164F

#51164F is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.2% C 0.115 H 329.3°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#51164F
RGBrgb(81, 22, 79)
HSLhsl(302, 57%, 20%)
HSVhsv(302, 73%, 32%)
CMYKcmyk(0%, 72.8%, 2.5%, 68.2%)
CIE-LABlab(19.59, 35.08, -21.29)
CIE-LCHlch(19.59, 41.03, 328.74°)
OKLaboklab(32.18% 0.0988 -0.0587)
OKLCHoklch(32.18% 0.115 329.3)
XYZxyz(5.0915, 2.8880, 7.6849)
Luminance0.0289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51164F #165118
analogous
#351651 #51164F #511631
triadic
#51164F #4F5116 #164F51
tetradic
#51164F #513516 #165118 #163151
square
#51164F #513516 #165118 #163151
split-complementary
#51164F #315116 #165135
monochromatic
#180717 #210920 #51164F #81237E #B130AD

Accessibility & contrast

On white

13.31
#51164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#51164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51164F
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51164F#FFFFFF#000000##FFFFFF
##51164F1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A51
Deuteranopia (green-blind)
#26324D
Tritanopia (blue-blind)
#541D30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51164f;
/* rgb */ color: rgb(81, 22, 79);
/* oklch */ color: oklch(32.2% 0.115 329.3);
Tailwind
colors: {
  custom: {
    50: '#845980',
    500: '#51164f',
    950: '#000000',
  },
}
SCSS
$custom: #51164f;
$custom-light: #845980;
$custom-dark: #000000;
JSON
{
  "hex": "#51164f",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 302.034,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32181,
    "c": 0.11491,
    "h": 329.3
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#51164F
secondary
#3A883D
accent
#E14C47
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51164F

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

Preview Lab → · Contrast checker → · Palette generator →

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