#7E771A#7E771A

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

Color values

HEX#7E771A
RGBrgb(126, 119, 26)
HSLhsl(56, 66%, 30%)
HSVhsv(56, 79%, 49%)
CMYKcmyk(0%, 5.6%, 79.4%, 50.6%)
CIE-LABlab(49.14, -8.25, 48.21)
CIE-LCHlch(49.14, 48.91, 99.71°)
OKLaboklab(55.87% -0.0281 0.1053)
OKLCHoklch(55.87% 0.109 104.9)
XYZxyz(15.3881, 17.7045, 3.5838)
Luminance0.1770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E771A #1A217E
analogous
#7E451A #7E771A #537E1A
triadic
#7E771A #1A7E77 #771A7E
tetradic
#7E771A #1A7E45 #1A217E #7E1A53
square
#7E771A #1A7E45 #1A217E #7E1A53
split-complementary
#7E771A #1A537E #451A7E
monochromatic
#191805 #4B4710 #7E771A #B1A724 #D7CC3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E771A#FFFFFF#000000##FFFFFF
##7E771A1.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)
#827304
Deuteranopia (green-blind)
#857721
Tritanopia (blue-blind)
#886E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e771a;
/* rgb */ color: rgb(126, 119, 26);
/* oklch */ color: oklch(55.9% 0.109 104.9);
Tailwind
colors: {
  custom: {
    50: '#a79d5f',
    500: '#7e771a',
    950: '#000000',
  },
}
SCSS
$custom: #7e771a;
$custom-light: #a79d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e771a",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 55.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55869,
    "c": 0.10895,
    "h": 104.9
  },
  "luminance": 0.17704
}

Semantic roles & 50–950 ramp

primary
#7E771A
secondary
#424AB2
accent
#4BE93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E771A

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

Preview Lab → · Contrast checker → · Palette generator →

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