#51184A#51184A

#51184A is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.107 H 333.0°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#51184A
RGBrgb(81, 24, 74)
HSLhsl(307, 54%, 21%)
HSVhsv(307, 70%, 32%)
CMYKcmyk(0%, 70.4%, 8.6%, 68.2%)
CIE-LABlab(19.63, 33.23, -17.83)
CIE-LCHlch(19.63, 37.71, 331.79°)
OKLaboklab(32.12% 0.0957 -0.0488)
OKLCHoklch(32.12% 0.107 333)
XYZxyz(4.9560, 2.8974, 6.7755)
Luminance0.0290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51184A #18511F
analogous
#3B1851 #51184A #51182D
triadic
#51184A #4A5118 #184A51
tetradic
#51184A #513B18 #18511F #182D51
square
#51184A #513B18 #18511F #182D51
split-complementary
#51184A #2D5118 #18513B
monochromatic
#180716 #220A1F #51184A #802675 #AF34A0

Accessibility & contrast

On white

13.30
#51184A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51184A
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51184A#FFFFFF#000000##FFFFFF
##51184A1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162A4B
Deuteranopia (green-blind)
#293249
Tritanopia (blue-blind)
#551D2E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51184a;
/* rgb */ color: rgb(81, 24, 74);
/* oklch */ color: oklch(32.1% 0.107 333.0);
Tailwind
colors: {
  custom: {
    50: '#845a7c',
    500: '#51184a',
    950: '#000000',
  },
}
SCSS
$custom: #51184a;
$custom-light: #845a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#51184a",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 74
  },
  "hsl": {
    "h": 307.368,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32115,
    "c": 0.10738,
    "h": 333
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

primary
#51184A
secondary
#3D8846
accent
#DE5C4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #51184A

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

Preview Lab → · Contrast checker → · Palette generator →

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