#7E791A#7E791A

#7E791A is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.111 H 106.3°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7E791A
RGBrgb(126, 121, 26)
HSLhsl(57, 66%, 30%)
HSVhsv(57, 79%, 49%)
CMYKcmyk(0%, 4%, 79.4%, 50.6%)
CIE-LABlab(49.72, -9.35, 48.74)
CIE-LCHlch(49.72, 49.63, 100.86°)
OKLaboklab(56.34% -0.0312 0.1064)
OKLCHoklch(56.34% 0.111 106.3)
XYZxyz(15.6287, 18.1855, 3.6640)
Luminance0.1819 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E791A #1A1F7E
analogous
#7E471A #7E791A #517E1A
triadic
#7E791A #1A7E79 #791A7E
tetradic
#7E791A #1A7E47 #1A1F7E #7E1A51
square
#7E791A #1A7E47 #1A1F7E #7E1A51
split-complementary
#7E791A #1A517E #471A7E
monochromatic
#191805 #4B4810 #7E791A #B1AA24 #D7CF3C

Accessibility & contrast

On white

4.53
#7E791A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#7E791A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E791A
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E791A#FFFFFF#000000##000000
##7E791A1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e791a;
/* rgb */ color: rgb(126, 121, 26);
/* oklch */ color: oklch(56.3% 0.111 106.3);
Tailwind
colors: {
  custom: {
    50: '#a79f5f',
    500: '#7e791a',
    950: '#000000',
  },
}
SCSS
$custom: #7e791a;
$custom-light: #a79f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e791a",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 57,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56335,
    "c": 0.11088,
    "h": 106.3
  },
  "luminance": 0.18185
}

Semantic roles & 50–950 ramp

primary
#7E791A
secondary
#4247B2
accent
#48E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E791A

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

Preview Lab → · Contrast checker → · Palette generator →

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