#51154D#51154D

#51154D is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.9% C 0.115 H 330.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#51154D
RGBrgb(81, 21, 77)
HSLhsl(304, 59%, 20%)
HSVhsv(304, 74%, 32%)
CMYKcmyk(0%, 74.1%, 4.9%, 68.2%)
CIE-LABlab(19.32, 35.14, -20.36)
CIE-LCHlch(19.32, 40.61, 329.91°)
OKLaboklab(31.94% 0.0999 -0.056)
OKLCHoklch(31.94% 0.115 330.7)
XYZxyz(5.0010, 2.8219, 7.3010)
Luminance0.0282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51154D #155119
analogous
#371551 #51154D #51152F
triadic
#51154D #4D5115 #154D51
tetradic
#51154D #513715 #155119 #152F51
square
#51154D #513715 #155119 #152F51
split-complementary
#51154D #2F5115 #155137
monochromatic
#180617 #20081F #51154D #82227B #B22EA9

Accessibility & contrast

On white

13.43
#51154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#51154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51154D
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51154D#FFFFFF#000000##FFFFFF
##51154D1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102A4F
Deuteranopia (green-blind)
#26324B
Tritanopia (blue-blind)
#541C2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51154d;
/* rgb */ color: rgb(81, 21, 77);
/* oklch */ color: oklch(31.9% 0.115 330.7);
Tailwind
colors: {
  custom: {
    50: '#84587f',
    500: '#51154d',
    950: '#000000',
  },
}
SCSS
$custom: #51154d;
$custom-light: #84587f;
$custom-dark: #000000;
JSON
{
  "hex": "#51154d",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 304,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.31944,
    "c": 0.11453,
    "h": 330.7
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#51154D
secondary
#39893E
accent
#E25046
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51154D

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

Preview Lab → · Contrast checker → · Palette generator →

#51154D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva