#51184C#51184C

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

Color values

HEX#51184C
RGBrgb(81, 24, 76)
HSLhsl(305, 54%, 21%)
HSVhsv(305, 70%, 32%)
CMYKcmyk(0%, 70.4%, 6.2%, 68.2%)
CIE-LABlab(19.74, 33.60, -19.01)
CIE-LCHlch(19.74, 38.61, 330.49°)
OKLaboklab(32.23% 0.0959 -0.0522)
OKLCHoklch(32.23% 0.109 331.4)
XYZxyz(5.0245, 2.9248, 7.1360)
Luminance0.0292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51184C #18511D
analogous
#391851 #51184C #51182F
triadic
#51184C #4C5118 #184C51
tetradic
#51184C #513918 #18511D #182F51
square
#51184C #513918 #18511D #182F51
split-complementary
#51184C #2F5118 #185139
monochromatic
#180716 #220A20 #51184C #802678 #AF34A5

Accessibility & contrast

On white

13.25
#51184C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51184C
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51184C#FFFFFF#000000##FFFFFF
##51184C1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152B4E
Deuteranopia (green-blind)
#28334B
Tritanopia (blue-blind)
#541E2F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51184c;
/* rgb */ color: rgb(81, 24, 76);
/* oklch */ color: oklch(32.2% 0.109 331.4);
Tailwind
colors: {
  custom: {
    50: '#845a7e',
    500: '#51184c',
    950: '#000000',
  },
}
SCSS
$custom: #51184c;
$custom-light: #845a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#51184c",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 76
  },
  "hsl": {
    "h": 305.263,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32233,
    "c": 0.10918,
    "h": 331.4
  },
  "luminance": 0.02924
}

Semantic roles & 50–950 ramp

primary
#51184C
secondary
#3D8844
accent
#DE574A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51184C

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

Preview Lab → · Contrast checker → · Palette generator →

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