#7C7040#7C7040

#7C7040 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.5% C 0.068 H 95.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7C7040
RGBrgb(124, 112, 64)
HSLhsl(48, 32%, 37%)
HSVhsv(48, 48%, 49%)
CMYKcmyk(0%, 9.7%, 48.4%, 51.4%)
CIE-LABlab(47.29, -2.42, 28.28)
CIE-LCHlch(47.29, 28.38, 94.89°)
OKLaboklab(54.48% -0.0068 0.0681)
OKLCHoklch(54.48% 0.068 95.7)
XYZxyz(15.0322, 16.2442, 7.1931)
Luminance0.1624 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7040 #404C7C
analogous
#7C5240 #7C7040 #6A7C40
triadic
#7C7040 #407C70 #70407C
tetradic
#7C7040 #407C52 #404C7C #7C406A
square
#7C7040 #407C52 #404C7C #7C406A
split-complementary
#7C7040 #406A7C #52407C
monochromatic
#2B2716 #544C2B #7C7040 #A49455 #BBAE7B

Accessibility & contrast

On white

4.94
#7C7040 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7C7040 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C7040
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7040#FFFFFF#000000##FFFFFF
##7C70401.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3C
Deuteranopia (green-blind)
#7C7242
Tritanopia (blue-blind)
#846964
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7c7040;
/* rgb */ color: rgb(124, 112, 64);
/* oklch */ color: oklch(54.5% 0.068 95.7);
Tailwind
colors: {
  custom: {
    50: '#a39876',
    500: '#7c7040',
    950: '#000000',
  },
}
SCSS
$custom: #7c7040;
$custom-light: #a39876;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7040",
  "rgb": {
    "r": 124,
    "g": 112,
    "b": 64
  },
  "hsl": {
    "h": 48,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.54482,
    "c": 0.06844,
    "h": 95.7
  },
  "luminance": 0.16244
}

Semantic roles & 50–950 ramp

primary
#7C7040
secondary
#727CA6
accent
#75C860
background
#FAF9F7
surface
#F4F2ED
border
#CECCC8
text
#0F0D08
muted
#7F7E7B

Preview Lab

Preview with #7C7040

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

Preview Lab → · Contrast checker → · Palette generator →

#7C7040 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva