#7F771E#7F771E

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

Color values

HEX#7F771E
RGBrgb(127, 119, 30)
HSLhsl(55, 62%, 31%)
HSVhsv(55, 76%, 50%)
CMYKcmyk(0%, 6.3%, 76.4%, 50.2%)
CIE-LABlab(49.25, -7.60, 46.90)
CIE-LCHlch(49.25, 47.51, 99.20°)
OKLaboklab(55.99% -0.0259 0.1033)
OKLCHoklch(55.99% 0.106 104.1)
XYZxyz(15.5842, 17.8000, 3.8429)
Luminance0.1780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F771E #1E267F
analogous
#7F471E #7F771E #567F1E
triadic
#7F771E #1E7F77 #771E7F
tetradic
#7F771E #1E7F47 #1E267F #7F1E56
square
#7F771E #1E7F47 #1E267F #7F1E56
split-complementary
#7F771E #1E567F #471E7F
monochromatic
#1C1A07 #4D4912 #7F771E #B1A52A #D3C744

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F771E#FFFFFF#000000##FFFFFF
##7F771E1.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)
#82730D
Deuteranopia (green-blind)
#857724
Tritanopia (blue-blind)
#896E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f771e;
/* rgb */ color: rgb(127, 119, 30);
/* oklch */ color: oklch(56.0% 0.106 104.1);
Tailwind
colors: {
  custom: {
    50: '#a79d61',
    500: '#7f771e',
    950: '#000000',
  },
}
SCSS
$custom: #7f771e;
$custom-light: #a79d61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f771e",
  "rgb": {
    "r": 127,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 55.052,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55992,
    "c": 0.10646,
    "h": 104.1
  },
  "luminance": 0.17799
}

Semantic roles & 50–950 ramp

primary
#7F771E
secondary
#474FB2
accent
#50E543
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F771E

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

Preview Lab → · Contrast checker → · Palette generator →

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