#51174C#51174C

#51174C is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.111 H 331.4°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#51174C
RGBrgb(81, 23, 76)
HSLhsl(305, 56%, 20%)
HSVhsv(305, 72%, 32%)
CMYKcmyk(0%, 71.6%, 6.2%, 68.2%)
CIE-LABlab(19.57, 34.06, -19.27)
CIE-LCHlch(19.57, 39.14, 330.50°)
OKLaboklab(32.11% 0.0972 -0.0529)
OKLCHoklch(32.11% 0.111 331.4)
XYZxyz(5.0042, 2.8843, 7.1292)
Luminance0.0288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51174C #17511C
analogous
#391751 #51174C #51172F
triadic
#51174C #4C5117 #174C51
tetradic
#51174C #513917 #17511C #172F51
square
#51174C #513917 #17511C #172F51
split-complementary
#51174C #2F5117 #175139
monochromatic
#180716 #21091F #51174C #812579 #B032A5

Accessibility & contrast

On white

13.32
#51174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51174C
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51174C#FFFFFF#000000##FFFFFF
##51174C1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4E
Deuteranopia (green-blind)
#28324B
Tritanopia (blue-blind)
#541D2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51174c;
/* rgb */ color: rgb(81, 23, 76);
/* oklch */ color: oklch(32.1% 0.111 331.4);
Tailwind
colors: {
  custom: {
    50: '#84597e',
    500: '#51174c',
    950: '#000000',
  },
}
SCSS
$custom: #51174c;
$custom-light: #84597e;
$custom-dark: #000000;
JSON
{
  "hex": "#51174c",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 305.172,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32112,
    "c": 0.11071,
    "h": 331.4
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

primary
#51174C
secondary
#3C8842
accent
#DF5649
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51174C

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

Preview Lab → · Contrast checker → · Palette generator →

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