#7D771C#7D771C

#7D771C is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.8% C 0.108 H 105.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7D771C
RGBrgb(125, 119, 28)
HSLhsl(56, 63%, 30%)
HSVhsv(56, 78%, 49%)
CMYKcmyk(0%, 4.8%, 77.6%, 51%)
CIE-LABlab(49.05, -8.63, 47.39)
CIE-LCHlch(49.05, 48.17, 100.32°)
OKLaboklab(55.79% -0.0289 0.104)
OKLCHoklch(55.79% 0.108 105.5)
XYZxyz(15.2645, 17.6381, 3.6988)
Luminance0.1764 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D771C #1C227D
analogous
#7D471C #7D771C #527D1C
triadic
#7D771C #1C7D77 #771C7D
tetradic
#7D771C #1C7D47 #1C227D #7D1C52
square
#7D771C #1C7D47 #1C227D #7D1C52
split-complementary
#7D771C #1C527D #471C7D
monochromatic
#191806 #4B4711 #7D771C #AFA727 #D4CB3F

Accessibility & contrast

On white

4.64
#7D771C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7D771C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D771C
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D771C#FFFFFF#000000##FFFFFF
##7D771C1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827208
Deuteranopia (green-blind)
#847623
Tritanopia (blue-blind)
#876E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d771c;
/* rgb */ color: rgb(125, 119, 28);
/* oklch */ color: oklch(55.8% 0.108 105.5);
Tailwind
colors: {
  custom: {
    50: '#a69d60',
    500: '#7d771c',
    950: '#000000',
  },
}
SCSS
$custom: #7d771c;
$custom-light: #a69d60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d771c",
  "rgb": {
    "r": 125,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 56.289,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.55786,
    "c": 0.10791,
    "h": 105.5
  },
  "luminance": 0.17637
}

Semantic roles & 50–950 ramp

primary
#7D771C
secondary
#444BB1
accent
#4CE641
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D771C

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

Preview Lab → · Contrast checker → · Palette generator →

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