#7E771B#7E771B

#7E771B is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.9% C 0.108 H 104.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7E771B
RGBrgb(126, 119, 27)
HSLhsl(56, 65%, 30%)
HSVhsv(56, 79%, 49%)
CMYKcmyk(0%, 5.6%, 78.6%, 50.6%)
CIE-LABlab(49.14, -8.20, 47.86)
CIE-LCHlch(49.14, 48.56, 99.72°)
OKLaboklab(55.88% -0.0278 0.1047)
OKLCHoklch(55.88% 0.108 104.9)
XYZxyz(15.3995, 17.7090, 3.6437)
Luminance0.1771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E771B #1B227E
analogous
#7E461B #7E771B #537E1B
triadic
#7E771B #1B7E77 #771B7E
tetradic
#7E771B #1B7E46 #1B227E #7E1B53
square
#7E771B #1B7E46 #1B227E #7E1B53
split-complementary
#7E771B #1B537E #461B7E
monochromatic
#191805 #4C4710 #7E771B #B0A726 #D6CB3E

Accessibility & contrast

On white

4.62
#7E771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7E771B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E771B
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E771B#FFFFFF#000000##FFFFFF
##7E771B1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827306
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#886E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e771b;
/* rgb */ color: rgb(126, 119, 27);
/* oklch */ color: oklch(55.9% 0.108 104.9);
Tailwind
colors: {
  custom: {
    50: '#a79d60',
    500: '#7e771b',
    950: '#000000',
  },
}
SCSS
$custom: #7e771b;
$custom-light: #a79d60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e771b",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 55.758,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.55876,
    "c": 0.10838,
    "h": 104.9
  },
  "luminance": 0.17708
}

Semantic roles & 50–950 ramp

primary
#7E771B
secondary
#434BB2
accent
#4CE840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E771B

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

Preview Lab → · Contrast checker → · Palette generator →

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