#51154B#51154B

#51154B is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.8% C 0.113 H 332.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#51154B
RGBrgb(81, 21, 75)
HSLhsl(306, 59%, 20%)
HSVhsv(306, 74%, 32%)
CMYKcmyk(0%, 74.1%, 7.4%, 68.2%)
CIE-LABlab(19.20, 34.77, -19.18)
CIE-LCHlch(19.20, 39.71, 331.11°)
OKLaboklab(31.82% 0.0997 -0.0526)
OKLCHoklch(31.82% 0.113 332.2)
XYZxyz(4.9315, 2.7940, 6.9348)
Luminance0.0279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51154B #15511B
analogous
#391551 #51154B #51152D
triadic
#51154B #4B5115 #154B51
tetradic
#51154B #513915 #15511B #152D51
square
#51154B #513915 #15511B #152D51
split-complementary
#51154B #2D5115 #155139
monochromatic
#180617 #20081E #51154B #822278 #B22EA5

Accessibility & contrast

On white

13.47
#51154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51154B
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51154B#FFFFFF#000000##FFFFFF
##51154B1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12294D
Deuteranopia (green-blind)
#273249
Tritanopia (blue-blind)
#551B2E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51154b;
/* rgb */ color: rgb(81, 21, 75);
/* oklch */ color: oklch(31.8% 0.113 332.2);
Tailwind
colors: {
  custom: {
    50: '#84587d',
    500: '#51154b',
    950: '#000000',
  },
}
SCSS
$custom: #51154b;
$custom-light: #84587d;
$custom-dark: #000000;
JSON
{
  "hex": "#51154b",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 306,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.31822,
    "c": 0.11276,
    "h": 332.2
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#51154B
secondary
#398941
accent
#E25546
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #51154B

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

Preview Lab → · Contrast checker → · Palette generator →

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