#7E771F#7E771F

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

Color values

HEX#7E771F
RGBrgb(126, 119, 31)
HSLhsl(56, 61%, 31%)
HSVhsv(56, 75%, 49%)
CMYKcmyk(0%, 5.6%, 75.4%, 50.6%)
CIE-LABlab(49.17, -8.01, 46.40)
CIE-LCHlch(49.17, 47.09, 99.80°)
OKLaboklab(55.9% -0.0269 0.1024)
OKLCHoklch(55.9% 0.106 104.7)
XYZxyz(15.4490, 17.7288, 3.9043)
Luminance0.1773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E771F #1F267E
analogous
#7E471F #7E771F #557E1F
triadic
#7E771F #1F7E77 #771F7E
tetradic
#7E771F #1F7E47 #1F267E #7E1F55
square
#7E771F #1F7E47 #1F267E #7E1F55
split-complementary
#7E771F #1F557E #471F7E
monochromatic
#1C1A07 #4D4913 #7E771F #AFA52B #D1C746

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E771F#FFFFFF#000000##FFFFFF
##7E771F1.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)
#82730F
Deuteranopia (green-blind)
#847725
Tritanopia (blue-blind)
#886E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e771f;
/* rgb */ color: rgb(126, 119, 31);
/* oklch */ color: oklch(55.9% 0.106 104.7);
Tailwind
colors: {
  custom: {
    50: '#a69d62',
    500: '#7e771f',
    950: '#000000',
  },
}
SCSS
$custom: #7e771f;
$custom-light: #a69d62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e771f",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 55.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55903,
    "c": 0.10592,
    "h": 104.7
  },
  "luminance": 0.17728
}

Semantic roles & 50–950 ramp

primary
#7E771F
secondary
#484FB1
accent
#50E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E771F

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

Preview Lab → · Contrast checker → · Palette generator →

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