#7F771F#7F771F

#7F771F is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 56.0% C 0.106 H 104.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7F771F
RGBrgb(127, 119, 31)
HSLhsl(55, 61%, 31%)
HSVhsv(55, 76%, 50%)
CMYKcmyk(0%, 6.3%, 75.6%, 50.2%)
CIE-LABlab(49.26, -7.55, 46.53)
CIE-LCHlch(49.26, 47.13, 99.22°)
OKLaboklab(56% -0.0256 0.1027)
OKLCHoklch(56% 0.106 104)
XYZxyz(15.5972, 17.8052, 3.9112)
Luminance0.1781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F771F #1F277F
analogous
#7F471F #7F771F #577F1F
triadic
#7F771F #1F7F77 #771F7F
tetradic
#7F771F #1F7F47 #1F277F #7F1F57
square
#7F771F #1F7F47 #1F277F #7F1F57
split-complementary
#7F771F #1F577F #471F7F
monochromatic
#1D1B07 #4E4913 #7F771F #B0A52B #D2C646

Accessibility & contrast

On white

4.60
#7F771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7F771F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F771F
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F771F#FFFFFF#000000##FFFFFF
##7F771F1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#896E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f771f;
/* rgb */ color: rgb(127, 119, 31);
/* oklch */ color: oklch(56.0% 0.106 104.0);
Tailwind
colors: {
  custom: {
    50: '#a79d62',
    500: '#7f771f',
    950: '#000000',
  },
}
SCSS
$custom: #7f771f;
$custom-light: #a79d62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f771f",
  "rgb": {
    "r": 127,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 55,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55999,
    "c": 0.10582,
    "h": 104
  },
  "luminance": 0.17805
}

Semantic roles & 50–950 ramp

primary
#7F771F
secondary
#4851B2
accent
#51E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F771F

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

Preview Lab → · Contrast checker → · Palette generator →

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