#51184D#51184D

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

Color values

HEX#51184D
RGBrgb(81, 24, 77)
HSLhsl(304, 54%, 21%)
HSVhsv(304, 70%, 32%)
CMYKcmyk(0%, 70.4%, 4.9%, 68.2%)
CIE-LABlab(19.80, 33.79, -19.61)
CIE-LCHlch(19.80, 39.07, 329.88°)
OKLaboklab(32.29% 0.096 -0.0539)
OKLCHoklch(32.29% 0.11 330.7)
XYZxyz(5.0595, 2.9388, 7.3205)
Luminance0.0294 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51184D #18511C
analogous
#381851 #51184D #511830
triadic
#51184D #4D5118 #184D51
tetradic
#51184D #513818 #18511C #183051
square
#51184D #513818 #18511C #183051
split-complementary
#51184D #305118 #185138
monochromatic
#180716 #220A20 #51184D #80267A #AF34A7

Accessibility & contrast

On white

13.23
#51184D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#51184D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51184D
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51184D#FFFFFF#000000##FFFFFF
##51184D1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142B4F
Deuteranopia (green-blind)
#28334C
Tritanopia (blue-blind)
#541E30
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51184d;
/* rgb */ color: rgb(81, 24, 77);
/* oklch */ color: oklch(32.3% 0.110 330.7);
Tailwind
colors: {
  custom: {
    50: '#845a7f',
    500: '#51184d',
    950: '#000000',
  },
}
SCSS
$custom: #51184d;
$custom-light: #845a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#51184d",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 77
  },
  "hsl": {
    "h": 304.211,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32293,
    "c": 0.1101,
    "h": 330.7
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#51184D
secondary
#3D8842
accent
#DE554A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51184D

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

Preview Lab → · Contrast checker → · Palette generator →

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