#7F771D#7F771D

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

Color values

HEX#7F771D
RGBrgb(127, 119, 29)
HSLhsl(55, 63%, 31%)
HSVhsv(55, 77%, 50%)
CMYKcmyk(0%, 6.3%, 77.2%, 50.2%)
CIE-LABlab(49.25, -7.64, 47.27)
CIE-LCHlch(49.25, 47.88, 99.19°)
OKLaboklab(55.99% -0.0261 0.1038)
OKLCHoklch(55.99% 0.107 104.1)
XYZxyz(15.5717, 17.7950, 3.7767)
Luminance0.1779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F771D #1D257F
analogous
#7F461D #7F771D #567F1D
triadic
#7F771D #1D7F77 #771D7F
tetradic
#7F771D #1D7F46 #1D257F #7F1D56
square
#7F771D #1D7F46 #1D257F #7F1D56
split-complementary
#7F771D #1D567F #461D7F
monochromatic
#1B1A06 #4D4812 #7F771D #B1A628 #D4C842

Accessibility & contrast

On white

4.61
#7F771D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F771D
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F771D#FFFFFF#000000##FFFFFF
##7F771D1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f771d;
/* rgb */ color: rgb(127, 119, 29);
/* oklch */ color: oklch(56.0% 0.107 104.1);
Tailwind
colors: {
  custom: {
    50: '#a79d61',
    500: '#7f771d',
    950: '#000000',
  },
}
SCSS
$custom: #7f771d;
$custom-light: #a79d61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f771d",
  "rgb": {
    "r": 127,
    "g": 119,
    "b": 29
  },
  "hsl": {
    "h": 55.102,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55986,
    "c": 0.10708,
    "h": 104.1
  },
  "luminance": 0.17794
}

Semantic roles & 50–950 ramp

primary
#7F771D
secondary
#454EB2
accent
#4FE642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F771D

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

Preview Lab → · Contrast checker → · Palette generator →

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