#7E782D#7E782D

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

Color values

HEX#7E782D
RGBrgb(126, 120, 45)
HSLhsl(56, 47%, 34%)
HSVhsv(56, 64%, 49%)
CMYKcmyk(0%, 4.8%, 64.3%, 50.6%)
CIE-LABlab(49.57, -7.72, 40.78)
CIE-LCHlch(49.57, 41.51, 100.72°)
OKLaboklab(56.26% -0.0245 0.0931)
OKLCHoklch(56.26% 0.096 104.7)
XYZxyz(15.7949, 18.0586, 5.1358)
Luminance0.1806 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E782D #2D337E
analogous
#7E4F2D #7E782D #5B7E2D
triadic
#7E782D #2D7E78 #782D7E
tetradic
#7E782D #2D7E4F #2D337E #7E2D5B
square
#7E782D #2D7E4F #2D337E #7E2D5B
split-complementary
#7E782D #2D5B7E #4F2D7E
monochromatic
#24220D #514D1D #7E782D #ABA33D #C6BE5F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E782D#FFFFFF#000000##000000
##7E782D1.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)
#827424
Deuteranopia (green-blind)
#847731
Tritanopia (blue-blind)
#877068
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e782d;
/* rgb */ color: rgb(126, 120, 45);
/* oklch */ color: oklch(56.3% 0.096 104.7);
Tailwind
colors: {
  custom: {
    50: '#a69e6a',
    500: '#7e782d',
    950: '#000000',
  },
}
SCSS
$custom: #7e782d;
$custom-light: #a69e6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e782d",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 45
  },
  "hsl": {
    "h": 55.556,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56257,
    "c": 0.09623,
    "h": 104.7
  },
  "luminance": 0.18058
}

Semantic roles & 50–950 ramp

primary
#7E782D
secondary
#5A60AC
accent
#5BD751
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E782D

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

Preview Lab → · Contrast checker → · Palette generator →

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