#51176A#51176A

#51176A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.140 H 313.3°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#51176A
RGBrgb(81, 23, 106)
HSLhsl(282, 64%, 25%)
HSVhsv(282, 78%, 42%)
CMYKcmyk(23.6%, 78.3%, 0%, 58.4%)
CIE-LABlab(21.59, 40.33, -36.03)
CIE-LCHlch(21.59, 54.08, 318.22°)
OKLaboklab(34.2% 0.096 -0.1018)
OKLCHoklch(34.2% 0.14 313.3)
XYZxyz(6.3008, 3.4029, 13.9578)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51176A #306A17
analogous
#28176A #51176A #6A1759
triadic
#51176A #6A5117 #176A51
tetradic
#51176A #6A2817 #306A17 #17596A
square
#51176A #6A2817 #306A17 #17596A
split-complementary
#51176A #596A17 #176A28
monochromatic
#130519 #2B0C38 #51176A #77229C #9E2DCF

Accessibility & contrast

On white

12.50
#51176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#51176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51176A
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51176A#FFFFFF#000000##FFFFFF
##51176A1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#0F3568
Tritanopia (blue-blind)
#4E2A3F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51176a;
/* rgb */ color: rgb(81, 23, 106);
/* oklch */ color: oklch(34.2% 0.140 313.3);
Tailwind
colors: {
  custom: {
    50: '#855b95',
    500: '#51176a',
    950: '#000000',
  },
}
SCSS
$custom: #51176a;
$custom-light: #855b95;
$custom-dark: #000000;
JSON
{
  "hex": "#51176a",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 281.928,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34202,
    "c": 0.13995,
    "h": 313.3
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#51176A
secondary
#5BA03D
accent
#E74073
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51176A

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

Preview Lab → · Contrast checker → · Palette generator →

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