#7C771F#7C771F

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

Color values

HEX#7C771F
RGBrgb(124, 119, 31)
HSLhsl(57, 60%, 30%)
HSVhsv(57, 75%, 49%)
CMYKcmyk(0%, 4%, 75%, 51.4%)
CIE-LABlab(48.98, -8.95, 46.16)
CIE-LCHlch(48.98, 47.02, 100.97°)
OKLaboklab(55.71% -0.0294 0.102)
OKLCHoklch(55.71% 0.106 106.1)
XYZxyz(15.1569, 17.5782, 3.8906)
Luminance0.1758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C771F #1F247C
analogous
#7C481F #7C771F #527C1F
triadic
#7C771F #1F7C77 #771F7C
tetradic
#7C771F #1F7C48 #1F247C #7C1F52
square
#7C771F #1F7C48 #1F247C #7C1F52
split-complementary
#7C771F #1F527C #481F7C
monochromatic
#1A1907 #4B4813 #7C771F #ADA62B #D0C945

Accessibility & contrast

On white

4.65
#7C771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7C771F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C771F
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C771F#FFFFFF#000000##FFFFFF
##7C771F1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82720F
Deuteranopia (green-blind)
#847625
Tritanopia (blue-blind)
#856F66
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c771f;
/* rgb */ color: rgb(124, 119, 31);
/* oklch */ color: oklch(55.7% 0.106 106.1);
Tailwind
colors: {
  custom: {
    50: '#a59e62',
    500: '#7c771f',
    950: '#000000',
  },
}
SCSS
$custom: #7c771f;
$custom-light: #a59e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c771f",
  "rgb": {
    "r": 124,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 56.774,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.55711,
    "c": 0.10617,
    "h": 106.1
  },
  "luminance": 0.17578
}

Semantic roles & 50–950 ramp

primary
#7C771F
secondary
#484DAF
accent
#4DE345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7C771F

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

Preview Lab → · Contrast checker → · Palette generator →

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