#51571D#51571D

#51571D is a dark, moderate yellow. Relative luminance 0.087; OKLCH L 43.8% C 0.080 H 114.8°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#51571D
RGBrgb(81, 87, 29)
HSLhsl(66, 50%, 23%)
HSVhsv(66, 67%, 34%)
CMYKcmyk(6.9%, 0%, 66.7%, 65.9%)
CIE-LABlab(35.31, -11.35, 31.91)
CIE-LCHlch(35.31, 33.86, 109.58°)
OKLaboklab(43.84% -0.0336 0.073)
OKLCHoklch(43.84% 0.08 114.8)
XYZxyz(7.0235, 8.6545, 2.4627)
Luminance0.0865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51571D #231D57
analogous
#57401D #51571D #34571D
triadic
#51571D #1D5157 #571D51
tetradic
#51571D #1D5740 #231D57 #571D34
square
#51571D #1D5740 #231D57 #571D34
split-complementary
#51571D #1D3457 #401D57
monochromatic
#151708 #26290E #51571D #7C852C #A6B33C

Accessibility & contrast

On white

7.69
#51571D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#51571D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51571D
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51571D#FFFFFF#000000##FFFFFF
##51571D1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5316
Deuteranopia (green-blind)
#5D5421
Tritanopia (blue-blind)
#56524B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #51571d;
/* rgb */ color: rgb(81, 87, 29);
/* oklch */ color: oklch(43.8% 0.080 114.8);
Tailwind
colors: {
  custom: {
    50: '#84865c',
    500: '#51571d',
    950: '#000000',
  },
}
SCSS
$custom: #51571d;
$custom-light: #84865c;
$custom-dark: #000000;
JSON
{
  "hex": "#51571d",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 29
  },
  "hsl": {
    "h": 66.207,
    "s": 50,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43842,
    "c": 0.08034,
    "h": 114.8
  },
  "luminance": 0.08654
}

Semantic roles & 50–950 ramp

primary
#51571D
secondary
#4B448C
accent
#4EDA5D
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #51571D

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

Preview Lab → · Contrast checker → · Palette generator →

#51571D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva