#7E771C#7E771C

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

Color values

HEX#7E771C
RGBrgb(126, 119, 28)
HSLhsl(56, 64%, 30%)
HSVhsv(56, 78%, 49%)
CMYKcmyk(0%, 5.6%, 77.8%, 50.6%)
CIE-LABlab(49.15, -8.16, 47.51)
CIE-LCHlch(49.15, 48.20, 99.74°)
OKLaboklab(55.88% -0.0276 0.1042)
OKLCHoklch(55.88% 0.108 104.8)
XYZxyz(15.4113, 17.7137, 3.7057)
Luminance0.1771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E771C #1C237E
analogous
#7E461C #7E771C #547E1C
triadic
#7E771C #1C7E77 #771C7E
tetradic
#7E771C #1C7E46 #1C237E #7E1C54
square
#7E771C #1C7E46 #1C237E #7E1C54
split-complementary
#7E771C #1C547E #461C7E
monochromatic
#1A1806 #4C4811 #7E771C #B0A627 #D5CA40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E771C#FFFFFF#000000##FFFFFF
##7E771C1.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)
#827308
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#886E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e771c;
/* rgb */ color: rgb(126, 119, 28);
/* oklch */ color: oklch(55.9% 0.108 104.8);
Tailwind
colors: {
  custom: {
    50: '#a79d60',
    500: '#7e771c',
    950: '#000000',
  },
}
SCSS
$custom: #7e771c;
$custom-light: #a79d60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e771c",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 55.714,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.55882,
    "c": 0.10779,
    "h": 104.8
  },
  "luminance": 0.17713
}

Semantic roles & 50–950 ramp

primary
#7E771C
secondary
#444CB2
accent
#4DE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E771C

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

Preview Lab → · Contrast checker → · Palette generator →

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