#51154A#51154A

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

Color values

HEX#51154A
RGBrgb(81, 21, 74)
HSLhsl(307, 59%, 20%)
HSVhsv(307, 74%, 32%)
CMYKcmyk(0%, 74.1%, 8.6%, 68.2%)
CIE-LABlab(19.14, 34.58, -18.59)
CIE-LCHlch(19.14, 39.26, 331.74°)
OKLaboklab(31.76% 0.0996 -0.0509)
OKLCHoklch(31.76% 0.112 332.9)
XYZxyz(4.8976, 2.7805, 6.7560)
Luminance0.0278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51154A #15511C
analogous
#3A1551 #51154A #51152C
triadic
#51154A #4A5115 #154A51
tetradic
#51154A #513A15 #15511C #152C51
square
#51154A #513A15 #15511C #152C51
split-complementary
#51154A #2C5115 #15513A
monochromatic
#180616 #20081E #51154A #822276 #B22EA3

Accessibility & contrast

On white

13.50
#51154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51154A
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51154A#FFFFFF#000000##FFFFFF
##51154A1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13294C
Deuteranopia (green-blind)
#283248
Tritanopia (blue-blind)
#551A2D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51154a;
/* rgb */ color: rgb(81, 21, 74);
/* oklch */ color: oklch(31.8% 0.112 332.9);
Tailwind
colors: {
  custom: {
    50: '#84587c',
    500: '#51154a',
    950: '#000000',
  },
}
SCSS
$custom: #51154a;
$custom-light: #84587c;
$custom-dark: #000000;
JSON
{
  "hex": "#51154a",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 307,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.31762,
    "c": 0.11188,
    "h": 332.9
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#51154A
secondary
#398942
accent
#E25846
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #51154A

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

Preview Lab → · Contrast checker → · Palette generator →

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