#51571F#51571F

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

Color values

HEX#51571F
RGBrgb(81, 87, 31)
HSLhsl(66, 47%, 23%)
HSVhsv(66, 64%, 34%)
CMYKcmyk(6.9%, 0%, 64.4%, 65.9%)
CIE-LABlab(35.33, -11.18, 30.93)
CIE-LCHlch(35.33, 32.89, 109.88°)
OKLaboklab(43.86% -0.0329 0.0712)
OKLCHoklch(43.86% 0.078 114.8)
XYZxyz(7.0490, 8.6648, 2.5972)
Luminance0.0867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51571F #251F57
analogous
#57411F #51571F #35571F
triadic
#51571F #1F5157 #571F51
tetradic
#51571F #1F5741 #251F57 #571F35
square
#51571F #1F5741 #251F57 #571F35
split-complementary
#51571F #1F3557 #411F57
monochromatic
#151708 #272A0F #51571F #7B842F #A5B13F

Accessibility & contrast

On white

7.68
#51571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51571F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51571F#FFFFFF#000000##FFFFFF
##51571F1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51571f;
/* rgb */ color: rgb(81, 87, 31);
/* oklch */ color: oklch(43.9% 0.078 114.8);
Tailwind
colors: {
  custom: {
    50: '#84865d',
    500: '#51571f',
    950: '#000000',
  },
}
SCSS
$custom: #51571f;
$custom-light: #84865d;
$custom-dark: #000000;
JSON
{
  "hex": "#51571f",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 66.429,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43864,
    "c": 0.07844,
    "h": 114.8
  },
  "luminance": 0.08665
}

Semantic roles & 50–950 ramp

primary
#51571F
secondary
#4E468C
accent
#51D75F
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #51571F

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

Preview Lab → · Contrast checker → · Palette generator →

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