#7D771F#7D771F

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

Color values

HEX#7D771F
RGBrgb(125, 119, 31)
HSLhsl(56, 60%, 31%)
HSVhsv(56, 75%, 49%)
CMYKcmyk(0%, 4.8%, 75.2%, 51%)
CIE-LABlab(49.07, -8.48, 46.28)
CIE-LCHlch(49.07, 47.05, 100.38°)
OKLaboklab(55.81% -0.0282 0.1022)
OKLCHoklch(55.81% 0.106 105.4)
XYZxyz(15.3022, 17.6531, 3.8974)
Luminance0.1765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D771F #1F257D
analogous
#7D481F #7D771F #547D1F
triadic
#7D771F #1F7D77 #771F7D
tetradic
#7D771F #1F7D48 #1F257D #7D1F54
square
#7D771F #1F7D48 #1F257D #7D1F54
split-complementary
#7D771F #1F547D #481F7D
monochromatic
#1B1A07 #4C4813 #7D771F #AEA62B #D1C845

Accessibility & contrast

On white

4.64
#7D771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7D771F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D771F
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D771F#FFFFFF#000000##FFFFFF
##7D771F1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#847625
Tritanopia (blue-blind)
#876F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d771f;
/* rgb */ color: rgb(125, 119, 31);
/* oklch */ color: oklch(55.8% 0.106 105.4);
Tailwind
colors: {
  custom: {
    50: '#a69e62',
    500: '#7d771f',
    950: '#000000',
  },
}
SCSS
$custom: #7d771f;
$custom-light: #a69e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d771f",
  "rgb": {
    "r": 125,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 56.17,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55806,
    "c": 0.10604,
    "h": 105.4
  },
  "luminance": 0.17653
}

Semantic roles & 50–950 ramp

primary
#7D771F
secondary
#484EB0
accent
#4FE344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7D771F

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

Preview Lab → · Contrast checker → · Palette generator →

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