#7E792B#7E792B

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

Color values

HEX#7E792B
RGBrgb(126, 121, 43)
HSLhsl(56, 49%, 33%)
HSVhsv(56, 66%, 49%)
CMYKcmyk(0%, 4%, 65.9%, 50.6%)
CIE-LABlab(49.84, -8.42, 42.00)
CIE-LCHlch(49.84, 42.84, 101.34°)
OKLaboklab(56.47% -0.0267 0.0953)
OKLCHoklch(56.47% 0.099 105.6)
XYZxyz(15.8782, 18.2853, 4.9781)
Luminance0.1829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E792B #2B307E
analogous
#7E502B #7E792B #597E2B
triadic
#7E792B #2B7E79 #792B7E
tetradic
#7E792B #2B7E50 #2B307E #7E2B59
square
#7E792B #2B7E50 #2B307E #7E2B59
split-complementary
#7E792B #2B597E #502B7E
monochromatic
#23210C #504D1B #7E792B #ACA53B #C7C15C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E792B#FFFFFF#000000##000000
##7E792B1.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)
#837521
Deuteranopia (green-blind)
#857830
Tritanopia (blue-blind)
#877169
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e792b;
/* rgb */ color: rgb(126, 121, 43);
/* oklch */ color: oklch(56.5% 0.099 105.6);
Tailwind
colors: {
  custom: {
    50: '#a69f68',
    500: '#7e792b',
    950: '#000000',
  },
}
SCSS
$custom: #7e792b;
$custom-light: #a69f68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e792b",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 43
  },
  "hsl": {
    "h": 56.386,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56469,
    "c": 0.099,
    "h": 105.6
  },
  "luminance": 0.18285
}

Semantic roles & 50–950 ramp

primary
#7E792B
secondary
#585DAD
accent
#57D94F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E792B

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

Preview Lab → · Contrast checker → · Palette generator →

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