#51184F#51184F

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

Color values

HEX#51184F
RGBrgb(81, 24, 79)
HSLhsl(302, 54%, 21%)
HSVhsv(302, 70%, 32%)
CMYKcmyk(0%, 70.4%, 2.5%, 68.2%)
CIE-LABlab(19.91, 34.17, -20.78)
CIE-LCHlch(19.91, 40.00, 328.70°)
OKLaboklab(32.41% 0.0962 -0.0573)
OKLCHoklch(32.41% 0.112 329.2)
XYZxyz(5.1312, 2.9675, 7.6981)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51184F #18511A
analogous
#361851 #51184F #511832
triadic
#51184F #4F5118 #184F51
tetradic
#51184F #513618 #18511A #183251
square
#51184F #513618 #18511A #183251
split-complementary
#51184F #325118 #185136
monochromatic
#180717 #220A21 #51184F #80267D #AF34AB

Accessibility & contrast

On white

13.18
#51184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51184F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51184F#FFFFFF#000000##FFFFFF
##51184F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122B51
Deuteranopia (green-blind)
#27334D
Tritanopia (blue-blind)
#541F31
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51184f;
/* rgb */ color: rgb(81, 24, 79);
/* oklch */ color: oklch(32.4% 0.112 329.2);
Tailwind
colors: {
  custom: {
    50: '#845a80',
    500: '#51184f',
    950: '#000000',
  },
}
SCSS
$custom: #51184f;
$custom-light: #845a80;
$custom-dark: #000000;
JSON
{
  "hex": "#51184f",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 302.105,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32414,
    "c": 0.11195,
    "h": 329.2
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#51184F
secondary
#3D8840
accent
#DE4F4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51184F

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

Preview Lab → · Contrast checker → · Palette generator →

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