#7E792F#7E792F

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

Color values

HEX#7E792F
RGBrgb(126, 121, 47)
HSLhsl(56, 46%, 34%)
HSVhsv(56, 63%, 49%)
CMYKcmyk(0%, 4%, 62.7%, 50.6%)
CIE-LABlab(49.88, -8.13, 40.17)
CIE-LCHlch(49.88, 40.99, 101.45°)
OKLaboklab(56.51% -0.0254 0.0921)
OKLCHoklch(56.51% 0.096 105.4)
XYZxyz(15.9552, 18.3161, 5.3837)
Luminance0.1832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E792F #2F347E
analogous
#7E522F #7E792F #5C7E2F
triadic
#7E792F #2F7E79 #792F7E
tetradic
#7E792F #2F7E52 #2F347E #7E2F5C
square
#7E792F #2F7E52 #2F347E #7E2F5C
split-complementary
#7E792F #2F5C7E #522F7E
monochromatic
#25230E #514E1E #7E792F #ABA440 #C5BE63

Accessibility & contrast

On white

4.50
#7E792F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E792F#FFFFFF#000000##000000
##7E792F1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#837527
Deuteranopia (green-blind)
#857833
Tritanopia (blue-blind)
#877169
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e792f;
/* rgb */ color: rgb(126, 121, 47);
/* oklch */ color: oklch(56.5% 0.096 105.4);
Tailwind
colors: {
  custom: {
    50: '#a69f6b',
    500: '#7e792f',
    950: '#000000',
  },
}
SCSS
$custom: #7e792f;
$custom-light: #a69f6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e792f",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 47
  },
  "hsl": {
    "h": 56.203,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.5651,
    "c": 0.09551,
    "h": 105.4
  },
  "luminance": 0.18316
}

Semantic roles & 50–950 ramp

primary
#7E792F
secondary
#5D62AC
accent
#5BD552
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #7E792F

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

Preview Lab → · Contrast checker → · Palette generator →

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