#7E772B#7E772B

#7E772B is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 56.0% C 0.097 H 104.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7E772B
RGBrgb(126, 119, 43)
HSLhsl(55, 49%, 33%)
HSVhsv(55, 66%, 49%)
CMYKcmyk(0%, 5.6%, 65.9%, 50.6%)
CIE-LABlab(49.26, -7.31, 41.38)
CIE-LCHlch(49.26, 42.02, 100.01°)
OKLaboklab(56.01% -0.0235 0.094)
OKLCHoklch(56.01% 0.097 104.1)
XYZxyz(15.6376, 17.8043, 4.8979)
Luminance0.1780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E772B #2B327E
analogous
#7E4D2B #7E772B #5B7E2B
triadic
#7E772B #2B7E77 #772B7E
tetradic
#7E772B #2B7E4D #2B327E #7E2B5B
square
#7E772B #2B7E4D #2B327E #7E2B5B
split-complementary
#7E772B #2B5B7E #4D2B7E
monochromatic
#23210C #504C1B #7E772B #ACA23B #C7BE5C

Accessibility & contrast

On white

4.60
#7E772B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7E772B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E772B
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E772B#FFFFFF#000000##FFFFFF
##7E772B1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817322
Deuteranopia (green-blind)
#84772F
Tritanopia (blue-blind)
#876F67
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e772b;
/* rgb */ color: rgb(126, 119, 43);
/* oklch */ color: oklch(56.0% 0.097 104.1);
Tailwind
colors: {
  custom: {
    50: '#a69e68',
    500: '#7e772b',
    950: '#000000',
  },
}
SCSS
$custom: #7e772b;
$custom-light: #a69e68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e772b",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 43
  },
  "hsl": {
    "h": 54.94,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56006,
    "c": 0.09692,
    "h": 104.1
  },
  "luminance": 0.17804
}

Semantic roles & 50–950 ramp

primary
#7E772B
secondary
#585FAD
accent
#5BD94F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E772B

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

Preview Lab → · Contrast checker → · Palette generator →

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