#51174A#51174A

#51174A is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.0% C 0.109 H 333.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#51174A
RGBrgb(81, 23, 74)
HSLhsl(307, 56%, 20%)
HSVhsv(307, 72%, 32%)
CMYKcmyk(0%, 71.6%, 8.6%, 68.2%)
CIE-LABlab(19.46, 33.69, -18.09)
CIE-LCHlch(19.46, 38.24, 331.77°)
OKLaboklab(31.99% 0.097 -0.0495)
OKLCHoklch(31.99% 0.109 333)
XYZxyz(4.9358, 2.8569, 6.7687)
Luminance0.0286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51174A #17511E
analogous
#3B1751 #51174A #51172D
triadic
#51174A #4A5117 #174A51
tetradic
#51174A #513B17 #17511E #172D51
square
#51174A #513B17 #17511E #172D51
split-complementary
#51174A #2D5117 #17513B
monochromatic
#180716 #21091E #51174A #812576 #B032A1

Accessibility & contrast

On white

13.36
#51174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#51174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51174A
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51174A#FFFFFF#000000##FFFFFF
##51174A1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152A4B
Deuteranopia (green-blind)
#293249
Tritanopia (blue-blind)
#551C2E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51174a;
/* rgb */ color: rgb(81, 23, 74);
/* oklch */ color: oklch(32.0% 0.109 333.0);
Tailwind
colors: {
  custom: {
    50: '#84597c',
    500: '#51174a',
    950: '#000000',
  },
}
SCSS
$custom: #51174a;
$custom-light: #84597c;
$custom-dark: #000000;
JSON
{
  "hex": "#51174a",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 307.241,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31994,
    "c": 0.10892,
    "h": 333
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#51174A
secondary
#3C8845
accent
#DF5B49
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #51174A

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

Preview Lab → · Contrast checker → · Palette generator →

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