#7E791E#7E791E

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

Color values

HEX#7E791E
RGBrgb(126, 121, 30)
HSLhsl(57, 62%, 31%)
HSVhsv(57, 76%, 49%)
CMYKcmyk(0%, 4%, 76.2%, 50.6%)
CIE-LABlab(49.74, -9.17, 47.33)
CIE-LCHlch(49.74, 48.21, 100.97°)
OKLaboklab(56.36% -0.0303 0.1042)
OKLCHoklch(56.36% 0.109 106.2)
XYZxyz(15.6765, 18.2047, 3.9161)
Luminance0.1820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E791E #1E237E
analogous
#7E491E #7E791E #537E1E
triadic
#7E791E #1E7E79 #791E7E
tetradic
#7E791E #1E7E49 #1E237E #7E1E53
square
#7E791E #1E7E49 #1E237E #7E1E53
split-complementary
#7E791E #1E537E #491E7E
monochromatic
#1B1A06 #4D4A12 #7E791E #AFA82A #D2CB44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E791E#FFFFFF#000000##000000
##7E791E1.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)
#84740C
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#887068
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e791e;
/* rgb */ color: rgb(126, 121, 30);
/* oklch */ color: oklch(56.4% 0.109 106.2);
Tailwind
colors: {
  custom: {
    50: '#a79f61',
    500: '#7e791e',
    950: '#000000',
  },
}
SCSS
$custom: #7e791e;
$custom-light: #a79f61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e791e",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 30
  },
  "hsl": {
    "h": 56.875,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56361,
    "c": 0.10853,
    "h": 106.2
  },
  "luminance": 0.18204
}

Semantic roles & 50–950 ramp

primary
#7E791E
secondary
#474CB1
accent
#4CE543
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E791E

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

Preview Lab → · Contrast checker → · Palette generator →

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