#51184E#51184E

#51184E is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.4% C 0.111 H 330.0°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#51184E
RGBrgb(81, 24, 78)
HSLhsl(303, 54%, 21%)
HSVhsv(303, 70%, 32%)
CMYKcmyk(0%, 70.4%, 3.7%, 68.2%)
CIE-LABlab(19.85, 33.98, -20.19)
CIE-LCHlch(19.85, 39.53, 329.28°)
OKLaboklab(32.35% 0.0961 -0.0556)
OKLCHoklch(32.35% 0.111 330)
XYZxyz(5.0951, 2.9530, 7.5079)
Luminance0.0295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51184E #18511B
analogous
#371851 #51184E #511831
triadic
#51184E #4E5118 #184E51
tetradic
#51184E #513718 #18511B #183151
square
#51184E #513718 #18511B #183151
split-complementary
#51184E #315118 #185137
monochromatic
#180717 #220A21 #51184E #80267B #AF34A9

Accessibility & contrast

On white

13.20
#51184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51184E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51184E#FFFFFF#000000##FFFFFF
##51184E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B50
Deuteranopia (green-blind)
#27334C
Tritanopia (blue-blind)
#541E30
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51184e;
/* rgb */ color: rgb(81, 24, 78);
/* oklch */ color: oklch(32.4% 0.111 330.0);
Tailwind
colors: {
  custom: {
    50: '#845a80',
    500: '#51184e',
    950: '#000000',
  },
}
SCSS
$custom: #51184e;
$custom-light: #845a80;
$custom-dark: #000000;
JSON
{
  "hex": "#51184e",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 303.158,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32353,
    "c": 0.11102,
    "h": 330
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

primary
#51184E
secondary
#3D8841
accent
#DE524A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51184E

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

Preview Lab → · Contrast checker → · Palette generator →

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