#51184B#51184B

#51184B is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.2% C 0.108 H 332.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#51184B
RGBrgb(81, 24, 75)
HSLhsl(306, 54%, 21%)
HSVhsv(306, 70%, 32%)
CMYKcmyk(0%, 70.4%, 7.4%, 68.2%)
CIE-LABlab(19.68, 33.41, -18.42)
CIE-LCHlch(19.68, 38.15, 331.13°)
OKLaboklab(32.17% 0.0958 -0.0505)
OKLCHoklch(32.17% 0.108 332.2)
XYZxyz(4.9900, 2.9110, 6.9543)
Luminance0.0291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51184B #18511E
analogous
#3A1851 #51184B #51182E
triadic
#51184B #4B5118 #184B51
tetradic
#51184B #513A18 #18511E #182E51
square
#51184B #513A18 #18511E #182E51
split-complementary
#51184B #2E5118 #18513A
monochromatic
#180716 #220A1F #51184B #802677 #AF34A2

Accessibility & contrast

On white

13.27
#51184B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#51184B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51184B
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51184B#FFFFFF#000000##FFFFFF
##51184B1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152A4D
Deuteranopia (green-blind)
#29334A
Tritanopia (blue-blind)
#551D2F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51184b;
/* rgb */ color: rgb(81, 24, 75);
/* oklch */ color: oklch(32.2% 0.108 332.2);
Tailwind
colors: {
  custom: {
    50: '#845a7d',
    500: '#51184b',
    950: '#000000',
  },
}
SCSS
$custom: #51184b;
$custom-light: #845a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#51184b",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 75
  },
  "hsl": {
    "h": 306.316,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32173,
    "c": 0.10828,
    "h": 332.2
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#51184B
secondary
#3D8845
accent
#DE5A4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #51184B

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

Preview Lab → · Contrast checker → · Palette generator →

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