#7E7720#7E7720

#7E7720 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.9% C 0.105 H 104.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7E7720
RGBrgb(126, 119, 32)
HSLhsl(56, 59%, 31%)
HSVhsv(56, 75%, 49%)
CMYKcmyk(0%, 5.6%, 74.6%, 50.6%)
CIE-LABlab(49.17, -7.96, 46.02)
CIE-LCHlch(49.17, 46.70, 99.82°)
OKLaboklab(55.91% -0.0267 0.1018)
OKLCHoklch(55.91% 0.105 104.7)
XYZxyz(15.4624, 17.7342, 3.9748)
Luminance0.1773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7720 #20277E
analogous
#7E4820 #7E7720 #567E20
triadic
#7E7720 #207E77 #77207E
tetradic
#7E7720 #207E48 #20277E #7E2056
square
#7E7720 #207E48 #20277E #7E2056
split-complementary
#7E7720 #20567E #48207E
monochromatic
#1C1B07 #4D4914 #7E7720 #AFA52C #D0C648

Accessibility & contrast

On white

4.62
#7E7720 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7E7720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7720
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7720#FFFFFF#000000##FFFFFF
##7E77201.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827311
Deuteranopia (green-blind)
#847726
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7720;
/* rgb */ color: rgb(126, 119, 32);
/* oklch */ color: oklch(55.9% 0.105 104.7);
Tailwind
colors: {
  custom: {
    50: '#a69e62',
    500: '#7e7720',
    950: '#000000',
  },
}
SCSS
$custom: #7e7720;
$custom-light: #a69e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7720",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 32
  },
  "hsl": {
    "h": 55.532,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5591,
    "c": 0.10526,
    "h": 104.7
  },
  "luminance": 0.17734
}

Semantic roles & 50–950 ramp

primary
#7E7720
secondary
#4951B1
accent
#51E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E7720

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

Preview Lab → · Contrast checker → · Palette generator →

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