#7B771B#7B771B

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

Color values

HEX#7B771B
RGBrgb(123, 119, 27)
HSLhsl(58, 64%, 29%)
HSVhsv(58, 78%, 48%)
CMYKcmyk(0%, 3.3%, 78%, 51.8%)
CIE-LABlab(48.86, -9.61, 47.51)
CIE-LCHlch(48.86, 48.47, 101.43°)
OKLaboklab(55.59% -0.0316 0.1041)
OKLCHoklch(55.59% 0.109 106.9)
XYZxyz(14.9636, 17.4843, 3.6233)
Luminance0.1748 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B771B #1B1F7B
analogous
#7B471B #7B771B #4F7B1B
triadic
#7B771B #1B7B77 #771B7B
tetradic
#7B771B #1B7B47 #1B1F7B #7B1B4F
square
#7B771B #1B7B47 #1B1F7B #7B1B4F
split-complementary
#7B771B #1B4F7B #471B7B
monochromatic
#191806 #494610 #7B771B #ADA826 #D4CE3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B771B#FFFFFF#000000##FFFFFF
##7B771B1.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)
#827206
Deuteranopia (green-blind)
#847622
Tritanopia (blue-blind)
#846F66
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b771b;
/* rgb */ color: rgb(123, 119, 27);
/* oklch */ color: oklch(55.6% 0.109 106.9);
Tailwind
colors: {
  custom: {
    50: '#a49e60',
    500: '#7b771b',
    950: '#000000',
  },
}
SCSS
$custom: #7b771b;
$custom-light: #a49e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b771b",
  "rgb": {
    "r": 123,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 57.5,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.55588,
    "c": 0.1088,
    "h": 106.9
  },
  "luminance": 0.17484
}

Semantic roles & 50–950 ramp

primary
#7B771B
secondary
#4347AF
accent
#48E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B771B

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

Preview Lab → · Contrast checker → · Palette generator →

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