#51174E#51174E

#51174E is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.2% C 0.113 H 330.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#51174E
RGBrgb(81, 23, 78)
HSLhsl(303, 56%, 20%)
HSVhsv(303, 72%, 32%)
CMYKcmyk(0%, 71.6%, 3.7%, 68.2%)
CIE-LABlab(19.69, 34.44, -20.45)
CIE-LCHlch(19.69, 40.06, 329.29°)
OKLaboklab(32.23% 0.0974 -0.0563)
OKLCHoklch(32.23% 0.113 330)
XYZxyz(5.0748, 2.9125, 7.5011)
Luminance0.0291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51174E #17511A
analogous
#371751 #51174E #511731
triadic
#51174E #4E5117 #174E51
tetradic
#51174E #513717 #17511A #173151
square
#51174E #513717 #17511A #173151
split-complementary
#51174E #315117 #175137
monochromatic
#180717 #210920 #51174E #81257C #B032AA

Accessibility & contrast

On white

13.27
#51174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#51174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51174E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51174E#FFFFFF#000000##FFFFFF
##51174E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122B50
Deuteranopia (green-blind)
#27324C
Tritanopia (blue-blind)
#541E30
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51174e;
/* rgb */ color: rgb(81, 23, 78);
/* oklch */ color: oklch(32.2% 0.113 330.0);
Tailwind
colors: {
  custom: {
    50: '#845980',
    500: '#51174e',
    950: '#000000',
  },
}
SCSS
$custom: #51174e;
$custom-light: #845980;
$custom-dark: #000000;
JSON
{
  "hex": "#51174e",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 303.103,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32234,
    "c": 0.11253,
    "h": 330
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#51174E
secondary
#3C8840
accent
#DF5049
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51174E

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

Preview Lab → · Contrast checker → · Palette generator →

#51174E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva