#51176B#51176B

#51176B is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.141 H 312.9°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#51176B
RGBrgb(81, 23, 107)
HSLhsl(281, 65%, 25%)
HSVhsv(281, 79%, 42%)
CMYKcmyk(24.3%, 78.5%, 0%, 58%)
CIE-LABlab(21.67, 40.56, -36.56)
CIE-LCHlch(21.67, 54.60, 317.97°)
OKLaboklab(34.28% 0.0959 -0.1033)
OKLCHoklch(34.28% 0.141 312.9)
XYZxyz(6.3531, 3.4239, 14.2333)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51176B #316B17
analogous
#27176B #51176B #6B175B
triadic
#51176B #6B5117 #176B51
tetradic
#51176B #6B2717 #316B17 #175B6B
square
#51176B #6B2717 #316B17 #175B6B
split-complementary
#51176B #5B6B17 #176B27
monochromatic
#130519 #2B0C39 #51176B #77229D #9D2DD0

Accessibility & contrast

On white

12.46
#51176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51176B
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51176B#FFFFFF#000000##FFFFFF
##51176B1.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#0D3569
Tritanopia (blue-blind)
#4E2A40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51176b;
/* rgb */ color: rgb(81, 23, 107);
/* oklch */ color: oklch(34.3% 0.141 312.9);
Tailwind
colors: {
  custom: {
    50: '#855b96',
    500: '#51176b',
    950: '#000000',
  },
}
SCSS
$custom: #51176b;
$custom-light: #855b96;
$custom-dark: #000000;
JSON
{
  "hex": "#51176b",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 281.429,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34281,
    "c": 0.14096,
    "h": 312.9
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#51176B
secondary
#5CA13D
accent
#E84074
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51176B

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

Preview Lab → · Contrast checker → · Palette generator →

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