#7E782F#7E782F

#7E782F is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.3% C 0.094 H 104.6°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7E782F
RGBrgb(126, 120, 47)
HSLhsl(55, 46%, 34%)
HSVhsv(55, 63%, 49%)
CMYKcmyk(0%, 4.8%, 62.7%, 50.6%)
CIE-LABlab(49.59, -7.58, 39.86)
CIE-LCHlch(49.59, 40.57, 100.77°)
OKLaboklab(56.28% -0.0238 0.0914)
OKLCHoklch(56.28% 0.094 104.6)
XYZxyz(15.8343, 18.0743, 5.3434)
Luminance0.1807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E782F #2F357E
analogous
#7E512F #7E782F #5D7E2F
triadic
#7E782F #2F7E78 #782F7E
tetradic
#7E782F #2F7E51 #2F357E #7E2F5D
square
#7E782F #2F7E51 #2F357E #7E2F5D
split-complementary
#7E782F #2F5D7E #512F7E
monochromatic
#25230E #514E1E #7E782F #ABA240 #C5BD63

Accessibility & contrast

On white

4.55
#7E782F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7E782F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E782F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E782F#FFFFFF#000000##000000
##7E782F1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#827427
Deuteranopia (green-blind)
#847733
Tritanopia (blue-blind)
#877068
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e782f;
/* rgb */ color: rgb(126, 120, 47);
/* oklch */ color: oklch(56.3% 0.094 104.6);
Tailwind
colors: {
  custom: {
    50: '#a69e6b',
    500: '#7e782f',
    950: '#000000',
  },
}
SCSS
$custom: #7e782f;
$custom-light: #a69e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e782f",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 47
  },
  "hsl": {
    "h": 55.443,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56279,
    "c": 0.09445,
    "h": 104.6
  },
  "luminance": 0.18074
}

Semantic roles & 50–950 ramp

primary
#7E782F
secondary
#5D63AC
accent
#5CD552
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #7E782F

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

Preview Lab → · Contrast checker → · Palette generator →

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