#51571E#51571E

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

Color values

HEX#51571E
RGBrgb(81, 87, 30)
HSLhsl(66, 49%, 23%)
HSVhsv(66, 66%, 34%)
CMYKcmyk(6.9%, 0%, 65.5%, 65.9%)
CIE-LABlab(35.32, -11.27, 31.42)
CIE-LCHlch(35.32, 33.38, 109.73°)
OKLaboklab(43.85% -0.0333 0.0721)
OKLCHoklch(43.85% 0.079 114.8)
XYZxyz(7.0360, 8.6596, 2.5289)
Luminance0.0866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51571E #241E57
analogous
#57401E #51571E #34571E
triadic
#51571E #1E5157 #571E51
tetradic
#51571E #1E5740 #241E57 #571E34
square
#51571E #1E5740 #241E57 #571E34
split-complementary
#51571E #1E3457 #401E57
monochromatic
#151708 #27290E #51571E #7B852E #A6B23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #51571e;
/* rgb */ color: rgb(81, 87, 30);
/* oklch */ color: oklch(43.9% 0.079 114.8);
Tailwind
colors: {
  custom: {
    50: '#84865d',
    500: '#51571e',
    950: '#000000',
  },
}
SCSS
$custom: #51571e;
$custom-light: #84865d;
$custom-dark: #000000;
JSON
{
  "hex": "#51571e",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 30
  },
  "hsl": {
    "h": 66.316,
    "s": 48.718,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43853,
    "c": 0.0794,
    "h": 114.8
  },
  "luminance": 0.08659
}

Semantic roles & 50–950 ramp

primary
#51571E
secondary
#4C458C
accent
#50D85E
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #51571E

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

Preview Lab → · Contrast checker → · Palette generator →

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