#51176C#51176C

#51176C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.4% C 0.142 H 312.4°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#51176C
RGBrgb(81, 23, 108)
HSLhsl(281, 65%, 26%)
HSVhsv(281, 79%, 42%)
CMYKcmyk(25%, 78.7%, 0%, 57.6%)
CIE-LABlab(21.74, 40.79, -37.08)
CIE-LCHlch(21.74, 55.13, 317.72°)
OKLaboklab(34.36% 0.0957 -0.1049)
OKLCHoklch(34.36% 0.142 312.4)
XYZxyz(6.4060, 3.4450, 14.5120)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51176C #326C17
analogous
#26176C #51176C #6C175C
triadic
#51176C #6C5117 #176C51
tetradic
#51176C #6C2617 #326C17 #175C6C
square
#51176C #6C2617 #326C17 #175C6C
split-complementary
#51176C #5C6C17 #176C26
monochromatic
#130519 #2B0C3A #51176C #77229E #9D2CD1

Accessibility & contrast

On white

12.43
#51176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#51176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51176C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51176C#FFFFFF#000000##FFFFFF
##51176C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#0B356A
Tritanopia (blue-blind)
#4E2B40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51176c;
/* rgb */ color: rgb(81, 23, 108);
/* oklch */ color: oklch(34.4% 0.142 312.4);
Tailwind
colors: {
  custom: {
    50: '#855b97',
    500: '#51176c',
    950: '#000000',
  },
}
SCSS
$custom: #51176c;
$custom-light: #855b97;
$custom-dark: #000000;
JSON
{
  "hex": "#51176c",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 280.941,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3436,
    "c": 0.14197,
    "h": 312.4
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#51176C
secondary
#5DA23D
accent
#E84075
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51176C

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

Preview Lab → · Contrast checker → · Palette generator →

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