#7F771B#7F771B

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

Color values

HEX#7F771B
RGBrgb(127, 119, 27)
HSLhsl(55, 65%, 30%)
HSVhsv(55, 79%, 50%)
CMYKcmyk(0%, 6.3%, 78.7%, 50.2%)
CIE-LABlab(49.23, -7.73, 47.98)
CIE-LCHlch(49.23, 48.60, 99.16°)
OKLaboklab(55.97% -0.0266 0.105)
OKLCHoklch(55.97% 0.108 104.2)
XYZxyz(15.5477, 17.7854, 3.6507)
Luminance0.1779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F771B #1B237F
analogous
#7F451B #7F771B #557F1B
triadic
#7F771B #1B7F77 #771B7F
tetradic
#7F771B #1B7F45 #1B237F #7F1B55
square
#7F771B #1B7F45 #1B237F #7F1B55
split-complementary
#7F771B #1B557F #451B7F
monochromatic
#1A1806 #4D4810 #7F771B #B1A626 #D6CA3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F771B#FFFFFF#000000##FFFFFF
##7F771B1.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)
#827306
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#896E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f771b;
/* rgb */ color: rgb(127, 119, 27);
/* oklch */ color: oklch(56.0% 0.108 104.2);
Tailwind
colors: {
  custom: {
    50: '#a79d60',
    500: '#7f771b',
    950: '#000000',
  },
}
SCSS
$custom: #7f771b;
$custom-light: #a79d60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f771b",
  "rgb": {
    "r": 127,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 55.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.55972,
    "c": 0.10826,
    "h": 104.2
  },
  "luminance": 0.17785
}

Semantic roles & 50–950 ramp

primary
#7F771B
secondary
#434CB3
accent
#4DE840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F771B

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

Preview Lab → · Contrast checker → · Palette generator →

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