#51174F#51174F

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

Color values

HEX#51174F
RGBrgb(81, 23, 79)
HSLhsl(302, 56%, 20%)
HSVhsv(302, 72%, 32%)
CMYKcmyk(0%, 71.6%, 2.5%, 68.2%)
CIE-LABlab(19.75, 34.63, -21.04)
CIE-LCHlch(19.75, 40.52, 328.72°)
OKLaboklab(32.3% 0.0975 -0.058)
OKLCHoklch(32.3% 0.113 329.2)
XYZxyz(5.1110, 2.9270, 7.6914)
Luminance0.0293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51174F #175119
analogous
#361751 #51174F #511732
triadic
#51174F #4F5117 #174F51
tetradic
#51174F #513617 #175119 #173251
square
#51174F #513617 #175119 #173251
split-complementary
#51174F #325117 #175136
monochromatic
#180717 #210921 #51174F #81257D #B032AC

Accessibility & contrast

On white

13.25
#51174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#51174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51174F
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51174F#FFFFFF#000000##FFFFFF
##51174F1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112B51
Deuteranopia (green-blind)
#26334D
Tritanopia (blue-blind)
#541E30
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51174f;
/* rgb */ color: rgb(81, 23, 79);
/* oklch */ color: oklch(32.3% 0.113 329.2);
Tailwind
colors: {
  custom: {
    50: '#845a80',
    500: '#51174f',
    950: '#000000',
  },
}
SCSS
$custom: #51174f;
$custom-light: #845a80;
$custom-dark: #000000;
JSON
{
  "hex": "#51174f",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 302.069,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32296,
    "c": 0.11345,
    "h": 329.2
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#51174F
secondary
#3C883E
accent
#DF4E49
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51174F

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

Preview Lab → · Contrast checker → · Palette generator →

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