#7F791B#7F791B

#7F791B is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.110 H 105.6°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F791B
RGBrgb(127, 121, 27)
HSLhsl(56, 65%, 30%)
HSVhsv(56, 79%, 50%)
CMYKcmyk(0%, 4.7%, 78.7%, 50.2%)
CIE-LABlab(49.82, -8.84, 48.52)
CIE-LCHlch(49.82, 49.32, 100.33°)
OKLaboklab(56.44% -0.0297 0.1061)
OKLCHoklch(56.44% 0.11 105.6)
XYZxyz(15.7883, 18.2665, 3.7308)
Luminance0.1827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F791B #1B217F
analogous
#7F471B #7F791B #537F1B
triadic
#7F791B #1B7F79 #791B7F
tetradic
#7F791B #1B7F47 #1B217F #7F1B53
square
#7F791B #1B7F47 #1B217F #7F1B53
split-complementary
#7F791B #1B537F #471B7F
monochromatic
#1A1906 #4D4910 #7F791B #B1A926 #D6CD3E

Accessibility & contrast

On white

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

On black

4.65
#7F791B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F791B
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F791B#FFFFFF#000000##000000
##7F791B1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#847405
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#897067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f791b;
/* rgb */ color: rgb(127, 121, 27);
/* oklch */ color: oklch(56.4% 0.110 105.6);
Tailwind
colors: {
  custom: {
    50: '#a79f60',
    500: '#7f791b',
    950: '#000000',
  },
}
SCSS
$custom: #7f791b;
$custom-light: #a79f60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f791b",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 56.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56437,
    "c": 0.11017,
    "h": 105.6
  },
  "luminance": 0.18266
}

Semantic roles & 50–950 ramp

primary
#7F791B
secondary
#434AB3
accent
#4AE840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F791B

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

Preview Lab → · Contrast checker → · Palette generator →

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