#7E771D#7E771D

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

Color values

HEX#7E771D
RGBrgb(126, 119, 29)
HSLhsl(56, 63%, 30%)
HSVhsv(56, 77%, 49%)
CMYKcmyk(0%, 5.6%, 77%, 50.6%)
CIE-LABlab(49.15, -8.11, 47.15)
CIE-LCHlch(49.15, 47.84, 99.76°)
OKLaboklab(55.89% -0.0274 0.1036)
OKLCHoklch(55.89% 0.107 104.8)
XYZxyz(15.4234, 17.7186, 3.7698)
Luminance0.1772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E771D #1D247E
analogous
#7E461D #7E771D #547E1D
triadic
#7E771D #1D7E77 #771D7E
tetradic
#7E771D #1D7E46 #1D247E #7E1D54
square
#7E771D #1D7E46 #1D247E #7E1D54
split-complementary
#7E771D #1D547E #461D7E
monochromatic
#1B1906 #4C4812 #7E771D #B0A628 #D3C942

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E771D#FFFFFF#000000##FFFFFF
##7E771D1.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)
#82730B
Deuteranopia (green-blind)
#847724
Tritanopia (blue-blind)
#886E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e771d;
/* rgb */ color: rgb(126, 119, 29);
/* oklch */ color: oklch(55.9% 0.107 104.8);
Tailwind
colors: {
  custom: {
    50: '#a79d61',
    500: '#7e771d',
    950: '#000000',
  },
}
SCSS
$custom: #7e771d;
$custom-light: #a79d61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e771d",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 29
  },
  "hsl": {
    "h": 55.67,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.55889,
    "c": 0.10718,
    "h": 104.8
  },
  "luminance": 0.17718
}

Semantic roles & 50–950 ramp

primary
#7E771D
secondary
#454DB1
accent
#4EE642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E771D

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

Preview Lab → · Contrast checker → · Palette generator →

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