#7F772A#7F772A

#7F772A is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.1% C 0.098 H 103.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7F772A
RGBrgb(127, 119, 42)
HSLhsl(54, 50%, 33%)
HSVhsv(54, 67%, 50%)
CMYKcmyk(0%, 6.3%, 66.9%, 50.2%)
CIE-LABlab(49.34, -6.91, 41.96)
CIE-LCHlch(49.34, 42.53, 99.36°)
OKLaboklab(56.09% -0.0226 0.0951)
OKLCHoklch(56.09% 0.098 103.4)
XYZxyz(15.7678, 17.8735, 4.8094)
Luminance0.1787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F772A #2A327F
analogous
#7F4C2A #7F772A #5C7F2A
triadic
#7F772A #2A7F77 #772A7F
tetradic
#7F772A #2A7F4C #2A327F #7F2A5C
square
#7F772A #2A7F4C #2A327F #7F2A5C
split-complementary
#7F772A #2A5C7F #4C2A7F
monochromatic
#23210C #514C1B #7F772A #ADA239 #C9BE5B

Accessibility & contrast

On white

4.59
#7F772A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7F772A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F772A
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F772A#FFFFFF#000000##FFFFFF
##7F772A1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827320
Deuteranopia (green-blind)
#84772E
Tritanopia (blue-blind)
#886F67
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f772a;
/* rgb */ color: rgb(127, 119, 42);
/* oklch */ color: oklch(56.1% 0.098 103.4);
Tailwind
colors: {
  custom: {
    50: '#a79e68',
    500: '#7f772a',
    950: '#000000',
  },
}
SCSS
$custom: #7f772a;
$custom-light: #a79e68;
$custom-dark: #000000;
JSON
{
  "hex": "#7f772a",
  "rgb": {
    "r": 127,
    "g": 119,
    "b": 42
  },
  "hsl": {
    "h": 54.353,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56092,
    "c": 0.0977,
    "h": 103.4
  },
  "luminance": 0.17873
}

Semantic roles & 50–950 ramp

primary
#7F772A
secondary
#575FAE
accent
#5BDA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7F772A

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

Preview Lab → · Contrast checker → · Palette generator →

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