#51164B#51164B

#51164B is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.9% C 0.111 H 332.2°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#51164B
RGBrgb(81, 22, 75)
HSLhsl(306, 57%, 20%)
HSVhsv(306, 73%, 32%)
CMYKcmyk(0%, 72.8%, 7.4%, 68.2%)
CIE-LABlab(19.36, 34.33, -18.94)
CIE-LCHlch(19.36, 39.20, 331.12°)
OKLaboklab(31.94% 0.0984 -0.0519)
OKLCHoklch(31.94% 0.111 332.2)
XYZxyz(4.9503, 2.8315, 6.9411)
Luminance0.0283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51164B #16511C
analogous
#3A1651 #51164B #51162D
triadic
#51164B #4B5116 #164B51
tetradic
#51164B #513A16 #16511C #162D51
square
#51164B #513A16 #16511C #162D51
split-complementary
#51164B #2D5116 #16513A
monochromatic
#180716 #21091E #51164B #812378 #B130A4

Accessibility & contrast

On white

13.41
#51164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51164B
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51164B#FFFFFF#000000##FFFFFF
##51164B1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4D
Deuteranopia (green-blind)
#283249
Tritanopia (blue-blind)
#551C2E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51164b;
/* rgb */ color: rgb(81, 22, 75);
/* oklch */ color: oklch(31.9% 0.111 332.2);
Tailwind
colors: {
  custom: {
    50: '#84597d',
    500: '#51164b',
    950: '#000000',
  },
}
SCSS
$custom: #51164b;
$custom-light: #84597d;
$custom-dark: #000000;
JSON
{
  "hex": "#51164b",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 306.102,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31936,
    "c": 0.1113,
    "h": 332.2
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

primary
#51164B
secondary
#3A8842
accent
#E15747
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #51164B

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

Preview Lab → · Contrast checker → · Palette generator →

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