#51154C#51154C

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

Color values

HEX#51154C
RGBrgb(81, 21, 76)
HSLhsl(305, 59%, 20%)
HSVhsv(305, 74%, 32%)
CMYKcmyk(0%, 74.1%, 6.2%, 68.2%)
CIE-LABlab(19.26, 34.95, -19.77)
CIE-LCHlch(19.26, 40.16, 330.50°)
OKLaboklab(31.88% 0.0998 -0.0543)
OKLCHoklch(31.88% 0.114 331.4)
XYZxyz(4.9660, 2.8078, 7.1165)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51154C #15511A
analogous
#381551 #51154C #51152E
triadic
#51154C #4C5115 #154C51
tetradic
#51154C #513815 #15511A #152E51
square
#51154C #513815 #15511A #152E51
split-complementary
#51154C #2E5115 #155138
monochromatic
#180617 #20081E #51154C #82227A #B22EA7

Accessibility & contrast

On white

13.45
#51154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51154C
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51154C#FFFFFF#000000##FFFFFF
##51154C1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11294E
Deuteranopia (green-blind)
#27324A
Tritanopia (blue-blind)
#551B2E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51154c;
/* rgb */ color: rgb(81, 21, 76);
/* oklch */ color: oklch(31.9% 0.114 331.4);
Tailwind
colors: {
  custom: {
    50: '#84587e',
    500: '#51154c',
    950: '#000000',
  },
}
SCSS
$custom: #51154c;
$custom-light: #84587e;
$custom-dark: #000000;
JSON
{
  "hex": "#51154c",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 305,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.31883,
    "c": 0.11364,
    "h": 331.4
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#51154C
secondary
#398940
accent
#E25346
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51154C

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

Preview Lab → · Contrast checker → · Palette generator →

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