#51174B#51174B

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

Color values

HEX#51174B
RGBrgb(81, 23, 75)
HSLhsl(306, 56%, 20%)
HSVhsv(306, 72%, 32%)
CMYKcmyk(0%, 71.6%, 7.4%, 68.2%)
CIE-LABlab(19.52, 33.87, -18.68)
CIE-LCHlch(19.52, 38.69, 331.12°)
OKLaboklab(32.05% 0.0971 -0.0512)
OKLCHoklch(32.05% 0.11 332.2)
XYZxyz(4.9697, 2.8705, 6.9476)
Luminance0.0287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51174B #17511D
analogous
#3A1751 #51174B #51172E
triadic
#51174B #4B5117 #174B51
tetradic
#51174B #513A17 #17511D #172E51
square
#51174B #513A17 #17511D #172E51
split-complementary
#51174B #2E5117 #17513A
monochromatic
#180716 #21091F #51174B #812577 #B032A3

Accessibility & contrast

On white

13.34
#51174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51174B
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51174B#FFFFFF#000000##FFFFFF
##51174B1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142A4D
Deuteranopia (green-blind)
#28324A
Tritanopia (blue-blind)
#551C2E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51174b;
/* rgb */ color: rgb(81, 23, 75);
/* oklch */ color: oklch(32.1% 0.110 332.2);
Tailwind
colors: {
  custom: {
    50: '#84597d',
    500: '#51174b',
    950: '#000000',
  },
}
SCSS
$custom: #51174b;
$custom-light: #84597d;
$custom-dark: #000000;
JSON
{
  "hex": "#51174b",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 306.207,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32053,
    "c": 0.10981,
    "h": 332.2
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#51174B
secondary
#3C8844
accent
#DF5849
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #51174B

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

Preview Lab → · Contrast checker → · Palette generator →

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