#7B771F#7B771F

#7B771F is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 55.6% C 0.106 H 106.8°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7B771F
RGBrgb(123, 119, 31)
HSLhsl(57, 60%, 30%)
HSVhsv(57, 75%, 48%)
CMYKcmyk(0%, 3.3%, 74.8%, 51.8%)
CIE-LABlab(48.89, -9.41, 46.04)
CIE-LCHlch(48.89, 46.99, 101.56°)
OKLaboklab(55.62% -0.0307 0.1018)
OKLCHoklch(55.62% 0.106 106.8)
XYZxyz(15.0131, 17.5041, 3.8839)
Luminance0.1750 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B771F #1F237B
analogous
#7B491F #7B771F #517B1F
triadic
#7B771F #1F7B77 #771F7B
tetradic
#7B771F #1F7B49 #1F237B #7B1F51
square
#7B771F #1F7B49 #1F237B #7B1F51
split-complementary
#7B771F #1F517B #491F7B
monochromatic
#191806 #4A4813 #7B771F #ACA62B #D0CA44

Accessibility & contrast

On white

4.67
#7B771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7B771F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B771F
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B771F#FFFFFF#000000##FFFFFF
##7B771F1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b771f;
/* rgb */ color: rgb(123, 119, 31);
/* oklch */ color: oklch(55.6% 0.106 106.8);
Tailwind
colors: {
  custom: {
    50: '#a49e61',
    500: '#7b771f',
    950: '#000000',
  },
}
SCSS
$custom: #7b771f;
$custom-light: #a49e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7b771f",
  "rgb": {
    "r": 123,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 57.391,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.55616,
    "c": 0.10632,
    "h": 106.8
  },
  "luminance": 0.17504
}

Semantic roles & 50–950 ramp

primary
#7B771F
secondary
#484CAE
accent
#4CE345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7B771F

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

Preview Lab → · Contrast checker → · Palette generator →

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