#7F791F#7F791F

#7F791F is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.5% C 0.108 H 105.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7F791F
RGBrgb(127, 121, 31)
HSLhsl(56, 61%, 31%)
HSVhsv(56, 76%, 50%)
CMYKcmyk(0%, 4.7%, 75.6%, 50.2%)
CIE-LABlab(49.84, -8.66, 47.08)
CIE-LCHlch(49.84, 47.87, 100.42°)
OKLaboklab(56.46% -0.0288 0.1038)
OKLCHoklch(56.46% 0.108 105.5)
XYZxyz(15.8377, 18.2863, 3.9914)
Luminance0.1829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F791F #1F257F
analogous
#7F491F #7F791F #557F1F
triadic
#7F791F #1F7F79 #791F7F
tetradic
#7F791F #1F7F49 #1F257F #7F1F55
square
#7F791F #1F7F49 #1F257F #7F1F55
split-complementary
#7F791F #1F557F #491F7F
monochromatic
#1D1B07 #4E4A13 #7F791F #B0A82B #D2C946

Accessibility & contrast

On white

4.51
#7F791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#7F791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F791F
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F791F#FFFFFF#000000##000000
##7F791F1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84740E
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#897068
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f791f;
/* rgb */ color: rgb(127, 121, 31);
/* oklch */ color: oklch(56.5% 0.108 105.5);
Tailwind
colors: {
  custom: {
    50: '#a79f62',
    500: '#7f791f',
    950: '#000000',
  },
}
SCSS
$custom: #7f791f;
$custom-light: #a79f62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f791f",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 56.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56463,
    "c": 0.10775,
    "h": 105.5
  },
  "luminance": 0.18286
}

Semantic roles & 50–950 ramp

primary
#7F791F
secondary
#484EB2
accent
#4EE444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F791F

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

Preview Lab → · Contrast checker → · Palette generator →

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