#7A771F#7A771F

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

Color values

HEX#7A771F
RGBrgb(122, 119, 31)
HSLhsl(58, 59%, 30%)
HSVhsv(58, 75%, 48%)
CMYKcmyk(0%, 2.5%, 74.6%, 52.2%)
CIE-LABlab(48.80, -9.88, 45.92)
CIE-LCHlch(48.80, 46.97, 102.14°)
OKLaboklab(55.52% -0.0319 0.1016)
OKLCHoklch(55.52% 0.106 107.4)
XYZxyz(14.8708, 17.4307, 3.8772)
Luminance0.1743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A771F #1F227A
analogous
#7A4A1F #7A771F #4F7A1F
triadic
#7A771F #1F7A77 #771F7A
tetradic
#7A771F #1F7A4A #1F227A #7A1F4F
square
#7A771F #1F7A4A #1F227A #7A1F4F
split-complementary
#7A771F #1F4F7A #4A1F7A
monochromatic
#181806 #494713 #7A771F #ABA72B #CFCB44

Accessibility & contrast

On white

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

On black

4.49
#7A771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7A771F#FFFFFF#000000##FFFFFF
##7A771F1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720F
Deuteranopia (green-blind)
#837525
Tritanopia (blue-blind)
#836F66
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a771f;
/* rgb */ color: rgb(122, 119, 31);
/* oklch */ color: oklch(55.5% 0.106 107.4);
Tailwind
colors: {
  custom: {
    50: '#a39e61',
    500: '#7a771f',
    950: '#000000',
  },
}
SCSS
$custom: #7a771f;
$custom-light: #a39e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7a771f",
  "rgb": {
    "r": 122,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 58.022,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.55521,
    "c": 0.10647,
    "h": 107.4
  },
  "luminance": 0.1743
}

Semantic roles & 50–950 ramp

primary
#7A771F
secondary
#474BAD
accent
#4AE345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7A771F

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

Preview Lab → · Contrast checker → · Palette generator →

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