#7C771A#7C771A

#7C771A is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.7% C 0.109 H 106.3°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7C771A
RGBrgb(124, 119, 26)
HSLhsl(57, 65%, 29%)
HSVhsv(57, 79%, 49%)
CMYKcmyk(0%, 4%, 79%, 51.4%)
CIE-LABlab(48.95, -9.18, 47.97)
CIE-LCHlch(48.95, 48.84, 100.84°)
OKLaboklab(55.68% -0.0306 0.1049)
OKLCHoklch(55.68% 0.109 106.3)
XYZxyz(15.0961, 17.5539, 3.5701)
Luminance0.1755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C771A #1A1F7C
analogous
#7C461A #7C771A #507C1A
triadic
#7C771A #1A7C77 #771A7C
tetradic
#7C771A #1A7C46 #1A1F7C #7C1A50
square
#7C771A #1A7C46 #1A1F7C #7C1A50
split-complementary
#7C771A #1A507C #461A7C
monochromatic
#191805 #49460F #7C771A #AFA825 #D6CE3B

Accessibility & contrast

On white

4.66
#7C771A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7C771A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C771A
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C771A#FFFFFF#000000##FFFFFF
##7C771A1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827204
Deuteranopia (green-blind)
#847621
Tritanopia (blue-blind)
#866E66
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c771a;
/* rgb */ color: rgb(124, 119, 26);
/* oklch */ color: oklch(55.7% 0.109 106.3);
Tailwind
colors: {
  custom: {
    50: '#a59d5f',
    500: '#7c771a',
    950: '#000000',
  },
}
SCSS
$custom: #7c771a;
$custom-light: #a59d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c771a",
  "rgb": {
    "r": 124,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 56.939,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.55677,
    "c": 0.10922,
    "h": 106.3
  },
  "luminance": 0.17553
}

Semantic roles & 50–950 ramp

primary
#7C771A
secondary
#4247B0
accent
#48E840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C771A

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

Preview Lab → · Contrast checker → · Palette generator →

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