#7A771C#7A771C

#7A771C is a mid, moderate yellow. Relative luminance 0.174; OKLCH L 55.5% C 0.108 H 107.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7A771C
RGBrgb(122, 119, 28)
HSLhsl(58, 63%, 29%)
HSVhsv(58, 77%, 48%)
CMYKcmyk(0%, 2.5%, 77%, 52.2%)
CIE-LABlab(48.78, -10.03, 47.03)
CIE-LCHlch(48.78, 48.09, 102.03°)
OKLaboklab(55.5% -0.0326 0.1034)
OKLCHoklch(55.5% 0.108 107.5)
XYZxyz(14.8331, 17.4156, 3.6786)
Luminance0.1741 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A771C #1C1F7A
analogous
#7A481C #7A771C #4E7A1C
triadic
#7A771C #1C7A77 #771C7A
tetradic
#7A771C #1C7A48 #1C1F7A #7A1C4E
square
#7A771C #1C7A48 #1C1F7A #7A1C4E
split-complementary
#7A771C #1C4E7A #481C7A
monochromatic
#191806 #484611 #7A771C #ACA827 #D3CE3E

Accessibility & contrast

On white

4.68
#7A771C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#7A771C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A771C
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A771C#FFFFFF#000000##FFFFFF
##7A771C1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827209
Deuteranopia (green-blind)
#837523
Tritanopia (blue-blind)
#836F66
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a771c;
/* rgb */ color: rgb(122, 119, 28);
/* oklch */ color: oklch(55.5% 0.108 107.5);
Tailwind
colors: {
  custom: {
    50: '#a49e60',
    500: '#7a771c',
    950: '#000000',
  },
}
SCSS
$custom: #7a771c;
$custom-light: #a49e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7a771c",
  "rgb": {
    "r": 122,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 58.085,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.555,
    "c": 0.10838,
    "h": 107.5
  },
  "luminance": 0.17415
}

Semantic roles & 50–950 ramp

primary
#7A771C
secondary
#4447AE
accent
#47E642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A771C

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

Preview Lab → · Contrast checker → · Palette generator →

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