#7E791F#7E791F

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

Color values

HEX#7E791F
RGBrgb(126, 121, 31)
HSLhsl(57, 61%, 31%)
HSVhsv(57, 75%, 49%)
CMYKcmyk(0%, 4%, 75.4%, 50.6%)
CIE-LABlab(49.75, -9.12, 46.96)
CIE-LCHlch(49.75, 47.84, 101.00°)
OKLaboklab(56.37% -0.03 0.1036)
OKLCHoklch(56.37% 0.108 106.2)
XYZxyz(15.6895, 18.2099, 3.9845)
Luminance0.1821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E791F #1F247E
analogous
#7E491F #7E791F #537E1F
triadic
#7E791F #1F7E79 #791F7E
tetradic
#7E791F #1F7E49 #1F247E #7E1F53
square
#7E791F #1F7E49 #1F247E #7E1F53
split-complementary
#7E791F #1F537E #491F7E
monochromatic
#1C1B07 #4D4A13 #7E791F #AFA82B #D1CA46

Accessibility & contrast

On white

4.52
#7E791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E791F#FFFFFF#000000##000000
##7E791F1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#84740E
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#887168
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e791f;
/* rgb */ color: rgb(126, 121, 31);
/* oklch */ color: oklch(56.4% 0.108 106.2);
Tailwind
colors: {
  custom: {
    50: '#a69f62',
    500: '#7e791f',
    950: '#000000',
  },
}
SCSS
$custom: #7e791f;
$custom-light: #a69f62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e791f",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 56.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56368,
    "c": 0.10789,
    "h": 106.2
  },
  "luminance": 0.18209
}

Semantic roles & 50–950 ramp

primary
#7E791F
secondary
#484DB1
accent
#4DE444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E791F

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

Preview Lab → · Contrast checker → · Palette generator →

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