#7F771C#7F771C

#7F771C 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#7F771C
RGBrgb(127, 119, 28)
HSLhsl(55, 64%, 30%)
HSVhsv(55, 78%, 50%)
CMYKcmyk(0%, 6.3%, 78%, 50.2%)
CIE-LABlab(49.24, -7.69, 47.63)
CIE-LCHlch(49.24, 48.25, 99.17°)
OKLaboklab(55.98% -0.0264 0.1044)
OKLCHoklch(55.98% 0.108 104.2)
XYZxyz(15.5595, 17.7902, 3.7126)
Luminance0.1779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F771C #1C247F
analogous
#7F461C #7F771C #557F1C
triadic
#7F771C #1C7F77 #771C7F
tetradic
#7F771C #1C7F46 #1C247F #7F1C55
square
#7F771C #1C7F46 #1C247F #7F1C55
split-complementary
#7F771C #1C557F #461C7F
monochromatic
#1B1906 #4D4811 #7F771C #B1A627 #D5C940

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F771C#FFFFFF#000000##FFFFFF
##7F771C1.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)
#827308
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#896E66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f771c;
/* rgb */ color: rgb(127, 119, 28);
/* oklch */ color: oklch(56.0% 0.108 104.2);
Tailwind
colors: {
  custom: {
    50: '#a79d60',
    500: '#7f771c',
    950: '#000000',
  },
}
SCSS
$custom: #7f771c;
$custom-light: #a79d60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f771c",
  "rgb": {
    "r": 127,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 55.152,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.55979,
    "c": 0.10768,
    "h": 104.2
  },
  "luminance": 0.1779
}

Semantic roles & 50–950 ramp

primary
#7F771C
secondary
#444DB3
accent
#4EE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F771C

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

Preview Lab → · Contrast checker → · Palette generator →

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