#7E771E#7E771E

#7E771E 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#7E771E
RGBrgb(126, 119, 30)
HSLhsl(56, 62%, 31%)
HSVhsv(56, 76%, 49%)
CMYKcmyk(0%, 5.6%, 76.2%, 50.6%)
CIE-LABlab(49.16, -8.06, 46.78)
CIE-LCHlch(49.16, 47.47, 99.78°)
OKLaboklab(55.9% -0.0271 0.103)
OKLCHoklch(55.9% 0.107 104.8)
XYZxyz(15.4360, 17.7236, 3.8360)
Luminance0.1772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E771E #1E257E
analogous
#7E471E #7E771E #557E1E
triadic
#7E771E #1E7E77 #771E7E
tetradic
#7E771E #1E7E47 #1E257E #7E1E55
square
#7E771E #1E7E47 #1E257E #7E1E55
split-complementary
#7E771E #1E557E #471E7E
monochromatic
#1B1A06 #4D4812 #7E771E #AFA62A #D2C844

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7e771e;
/* rgb */ color: rgb(126, 119, 30);
/* oklch */ color: oklch(55.9% 0.107 104.8);
Tailwind
colors: {
  custom: {
    50: '#a79d61',
    500: '#7e771e',
    950: '#000000',
  },
}
SCSS
$custom: #7e771e;
$custom-light: #a79d61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e771e",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 55.625,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55895,
    "c": 0.10656,
    "h": 104.8
  },
  "luminance": 0.17723
}

Semantic roles & 50–950 ramp

primary
#7E771E
secondary
#474EB1
accent
#4FE543
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E771E

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

Preview Lab → · Contrast checker → · Palette generator →

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