#51571A#51571A

#51571A is a dark, moderate yellow. Relative luminance 0.086; OKLCH L 43.8% C 0.083 H 114.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#51571A
RGBrgb(81, 87, 26)
HSLhsl(66, 54%, 22%)
HSVhsv(66, 70%, 34%)
CMYKcmyk(6.9%, 0%, 70.1%, 65.9%)
CIE-LABlab(35.28, -11.58, 33.32)
CIE-LCHlch(35.28, 35.27, 109.16°)
OKLaboklab(43.81% -0.0346 0.0755)
OKLCHoklch(43.81% 0.083 114.7)
XYZxyz(6.9882, 8.6404, 2.2767)
Luminance0.0864 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51571A #201A57
analogous
#573F1A #51571A #32571A
triadic
#51571A #1A5157 #571A51
tetradic
#51571A #1A573F #201A57 #571A32
square
#51571A #1A573F #201A57 #571A32
split-complementary
#51571A #1A3257 #3F1A57
monochromatic
#161807 #25280C #51571A #7D8628 #A9B536

Accessibility & contrast

On white

7.70
#51571A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51571A
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51571A#FFFFFF#000000##FFFFFF
##51571A1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51571a;
/* rgb */ color: rgb(81, 87, 26);
/* oklch */ color: oklch(43.8% 0.083 114.7);
Tailwind
colors: {
  custom: {
    50: '#84865a',
    500: '#51571a',
    950: '#000000',
  },
}
SCSS
$custom: #51571a;
$custom-light: #84865a;
$custom-dark: #000000;
JSON
{
  "hex": "#51571a",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 65.902,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.4381,
    "c": 0.08302,
    "h": 114.7
  },
  "luminance": 0.0864
}

Semantic roles & 50–950 ramp

primary
#51571A
secondary
#47408D
accent
#4ADD59
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #51571A

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

Preview Lab → · Contrast checker → · Palette generator →

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