#7E791B#7E791B

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

Color values

HEX#7E791B
RGBrgb(126, 121, 27)
HSLhsl(57, 65%, 30%)
HSVhsv(57, 79%, 49%)
CMYKcmyk(0%, 4%, 78.6%, 50.6%)
CIE-LABlab(49.73, -9.31, 48.40)
CIE-LCHlch(49.73, 49.29, 100.89°)
OKLaboklab(56.34% -0.0309 0.1059)
OKLCHoklch(56.34% 0.11 106.3)
XYZxyz(15.6400, 18.1901, 3.7239)
Luminance0.1819 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E791B #1B207E
analogous
#7E481B #7E791B #517E1B
triadic
#7E791B #1B7E79 #791B7E
tetradic
#7E791B #1B7E48 #1B207E #7E1B51
square
#7E791B #1B7E48 #1B207E #7E1B51
split-complementary
#7E791B #1B517E #481B7E
monochromatic
#191805 #4C4910 #7E791B #B0A926 #D6CE3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E791B#FFFFFF#000000##000000
##7E791B1.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)
#847405
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#887067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e791b;
/* rgb */ color: rgb(126, 121, 27);
/* oklch */ color: oklch(56.3% 0.110 106.3);
Tailwind
colors: {
  custom: {
    50: '#a79f60',
    500: '#7e791b',
    950: '#000000',
  },
}
SCSS
$custom: #7e791b;
$custom-light: #a79f60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e791b",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 56.97,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.56341,
    "c": 0.11031,
    "h": 106.3
  },
  "luminance": 0.18189
}

Semantic roles & 50–950 ramp

primary
#7E791B
secondary
#4349B2
accent
#49E840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E791B

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

Preview Lab → · Contrast checker → · Palette generator →

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