#7E772A#7E772A

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

Color values

HEX#7E772A
RGBrgb(126, 119, 42)
HSLhsl(55, 50%, 33%)
HSVhsv(55, 67%, 49%)
CMYKcmyk(0%, 5.6%, 66.7%, 50.6%)
CIE-LABlab(49.25, -7.37, 41.83)
CIE-LCHlch(49.25, 42.48, 100.00°)
OKLaboklab(56% -0.0238 0.0948)
OKLCHoklch(56% 0.098 104.1)
XYZxyz(15.6195, 17.7970, 4.8024)
Luminance0.1780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E772A #2A317E
analogous
#7E4D2A #7E772A #5B7E2A
triadic
#7E772A #2A7E77 #772A7E
tetradic
#7E772A #2A7E4D #2A317E #7E2A5B
square
#7E772A #2A7E4D #2A317E #7E2A5B
split-complementary
#7E772A #2A5B7E #4D2A7E
monochromatic
#22200B #504C1B #7E772A #ACA239 #C8BF5A

Accessibility & contrast

On white

4.61
#7E772A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E772A
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E772A#FFFFFF#000000##FFFFFF
##7E772A1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e772a;
/* rgb */ color: rgb(126, 119, 42);
/* oklch */ color: oklch(56.0% 0.098 104.1);
Tailwind
colors: {
  custom: {
    50: '#a69e68',
    500: '#7e772a',
    950: '#000000',
  },
}
SCSS
$custom: #7e772a;
$custom-light: #a69e68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e772a",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 42
  },
  "hsl": {
    "h": 55,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55996,
    "c": 0.09776,
    "h": 104.1
  },
  "luminance": 0.17796
}

Semantic roles & 50–950 ramp

primary
#7E772A
secondary
#565DAE
accent
#5ADA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E772A

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

Preview Lab → · Contrast checker → · Palette generator →

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