#7F771A#7F771A

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

Color values

HEX#7F771A
RGBrgb(127, 119, 26)
HSLhsl(55, 66%, 30%)
HSVhsv(55, 80%, 50%)
CMYKcmyk(0%, 6.3%, 79.5%, 50.2%)
CIE-LABlab(49.23, -7.78, 48.33)
CIE-LCHlch(49.23, 48.95, 99.14°)
OKLaboklab(55.97% -0.0268 0.1055)
OKLCHoklch(55.97% 0.109 104.3)
XYZxyz(15.5364, 17.7809, 3.5908)
Luminance0.1778 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F771A #1A227F
analogous
#7F451A #7F771A #547F1A
triadic
#7F771A #1A7F77 #771A7F
tetradic
#7F771A #1A7F45 #1A227F #7F1A54
square
#7F771A #1A7F45 #1A227F #7F1A54
split-complementary
#7F771A #1A547F #451A7F
monochromatic
#191805 #4C4710 #7F771A #B2A724 #D7CB3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F771A#FFFFFF#000000##FFFFFF
##7F771A1.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)
#827304
Deuteranopia (green-blind)
#857721
Tritanopia (blue-blind)
#896E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f771a;
/* rgb */ color: rgb(127, 119, 26);
/* oklch */ color: oklch(56.0% 0.109 104.3);
Tailwind
colors: {
  custom: {
    50: '#a79d5f',
    500: '#7f771a',
    950: '#000000',
  },
}
SCSS
$custom: #7f771a;
$custom-light: #a79d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f771a",
  "rgb": {
    "r": 127,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 55.248,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.55966,
    "c": 0.10883,
    "h": 104.3
  },
  "luminance": 0.1778
}

Semantic roles & 50–950 ramp

primary
#7F771A
secondary
#424BB3
accent
#4CE93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F771A

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

Preview Lab → · Contrast checker → · Palette generator →

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