#51571B#51571B

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

Color values

HEX#51571B
RGBrgb(81, 87, 27)
HSLhsl(66, 53%, 22%)
HSVhsv(66, 69%, 34%)
CMYKcmyk(6.9%, 0%, 69%, 65.9%)
CIE-LABlab(35.29, -11.51, 32.86)
CIE-LCHlch(35.29, 34.81, 109.30°)
OKLaboklab(43.82% -0.0343 0.0746)
OKLCHoklch(43.82% 0.082 114.7)
XYZxyz(6.9995, 8.6450, 2.3366)
Luminance0.0864 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51571B #211B57
analogous
#573F1B #51571B #33571B
triadic
#51571B #1B5157 #571B51
tetradic
#51571B #1B573F #211B57 #571B33
square
#51571B #1B573F #211B57 #571B33
split-complementary
#51571B #1B3357 #3F1B57
monochromatic
#161707 #26280D #51571B #7C8629 #A8B438

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51571B#FFFFFF#000000##FFFFFF
##51571B1.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)
#5D5313
Deuteranopia (green-blind)
#5D541F
Tritanopia (blue-blind)
#56524B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #51571b;
/* rgb */ color: rgb(81, 87, 27);
/* oklch */ color: oklch(43.8% 0.082 114.7);
Tailwind
colors: {
  custom: {
    50: '#84865b',
    500: '#51571b',
    950: '#000000',
  },
}
SCSS
$custom: #51571b;
$custom-light: #84865b;
$custom-dark: #000000;
JSON
{
  "hex": "#51571b",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 66,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43821,
    "c": 0.08215,
    "h": 114.7
  },
  "luminance": 0.08645
}

Semantic roles & 50–950 ramp

primary
#51571B
secondary
#49418D
accent
#4CDC5A
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #51571B

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

Preview Lab → · Contrast checker → · Palette generator →

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