#7D771B#7D771B

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

Color values

HEX#7D771B
RGBrgb(125, 119, 27)
HSLhsl(56, 64%, 30%)
HSVhsv(56, 78%, 49%)
CMYKcmyk(0%, 4.8%, 78.4%, 51%)
CIE-LABlab(49.05, -8.67, 47.74)
CIE-LCHlch(49.05, 48.52, 100.29°)
OKLaboklab(55.78% -0.0291 0.1045)
OKLCHoklch(55.78% 0.109 105.6)
XYZxyz(15.2527, 17.6333, 3.6368)
Luminance0.1763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D771B #1B217D
analogous
#7D461B #7D771B #527D1B
triadic
#7D771B #1B7D77 #771B7D
tetradic
#7D771B #1B7D46 #1B217D #7D1B52
square
#7D771B #1B7D46 #1B217D #7D1B52
split-complementary
#7D771B #1B527D #461B7D
monochromatic
#191805 #4B4710 #7D771B #AFA726 #D5CC3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D771B#FFFFFF#000000##FFFFFF
##7D771B1.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)
#827206
Deuteranopia (green-blind)
#847622
Tritanopia (blue-blind)
#876E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d771b;
/* rgb */ color: rgb(125, 119, 27);
/* oklch */ color: oklch(55.8% 0.108 105.6);
Tailwind
colors: {
  custom: {
    50: '#a69d60',
    500: '#7d771b',
    950: '#000000',
  },
}
SCSS
$custom: #7d771b;
$custom-light: #a69d60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d771b",
  "rgb": {
    "r": 125,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 56.327,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55779,
    "c": 0.1085,
    "h": 105.6
  },
  "luminance": 0.17633
}

Semantic roles & 50–950 ramp

primary
#7D771B
secondary
#434AB1
accent
#4BE740
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D771B

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

Preview Lab → · Contrast checker → · Palette generator →

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