#7A771B#7A771B

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

Color values

HEX#7A771B
RGBrgb(122, 119, 27)
HSLhsl(58, 64%, 29%)
HSVhsv(58, 78%, 48%)
CMYKcmyk(0%, 2.5%, 77.9%, 52.2%)
CIE-LABlab(48.77, -10.07, 47.39)
CIE-LCHlch(48.77, 48.45, 102.00°)
OKLaboklab(55.49% -0.0329 0.1039)
OKLCHoklch(55.49% 0.109 107.6)
XYZxyz(14.8213, 17.4109, 3.6166)
Luminance0.1741 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A771B #1B1E7A
analogous
#7A481B #7A771B #4E7A1B
triadic
#7A771B #1B7A77 #771B7A
tetradic
#7A771B #1B7A48 #1B1E7A #7A1B4E
square
#7A771B #1B7A48 #1B1E7A #7A1B4E
split-complementary
#7A771B #1B4E7A #481B7A
monochromatic
#191806 #484610 #7A771B #ACA826 #D4CF3C

Accessibility & contrast

On white

4.69
#7A771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A771B
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A771B#FFFFFF#000000##FFFFFF
##7A771B1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a771b;
/* rgb */ color: rgb(122, 119, 27);
/* oklch */ color: oklch(55.5% 0.109 107.6);
Tailwind
colors: {
  custom: {
    50: '#a49e60',
    500: '#7a771b',
    950: '#000000',
  },
}
SCSS
$custom: #7a771b;
$custom-light: #a49e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7a771b",
  "rgb": {
    "r": 122,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 58.105,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.55494,
    "c": 0.10897,
    "h": 107.6
  },
  "luminance": 0.1741
}

Semantic roles & 50–950 ramp

primary
#7A771B
secondary
#4346AE
accent
#46E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A771B

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

Preview Lab → · Contrast checker → · Palette generator →

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