#7E782B#7E782B

#7E782B is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.098 H 104.9°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7E782B
RGBrgb(126, 120, 43)
HSLhsl(56, 49%, 33%)
HSVhsv(56, 66%, 49%)
CMYKcmyk(0%, 4.8%, 65.9%, 50.6%)
CIE-LABlab(49.55, -7.86, 41.69)
CIE-LCHlch(49.55, 42.43, 100.68°)
OKLaboklab(56.24% -0.0251 0.0947)
OKLCHoklch(56.24% 0.098 104.9)
XYZxyz(15.7573, 18.0435, 4.9378)
Luminance0.1804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E782B #2B317E
analogous
#7E4E2B #7E782B #5A7E2B
triadic
#7E782B #2B7E78 #782B7E
tetradic
#7E782B #2B7E4E #2B317E #7E2B5A
square
#7E782B #2B7E4E #2B317E #7E2B5A
split-complementary
#7E782B #2B5A7E #4E2B7E
monochromatic
#23210C #504D1B #7E782B #ACA33B #C7C05C

Accessibility & contrast

On white

4.56
#7E782B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E782B#FFFFFF#000000##000000
##7E782B1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e782b;
/* rgb */ color: rgb(126, 120, 43);
/* oklch */ color: oklch(56.2% 0.098 104.9);
Tailwind
colors: {
  custom: {
    50: '#a69e68',
    500: '#7e782b',
    950: '#000000',
  },
}
SCSS
$custom: #7e782b;
$custom-light: #a69e68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e782b",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 43
  },
  "hsl": {
    "h": 55.663,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56237,
    "c": 0.09795,
    "h": 104.9
  },
  "luminance": 0.18043
}

Semantic roles & 50–950 ramp

primary
#7E782B
secondary
#585EAD
accent
#59D94F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E782B

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

Preview Lab → · Contrast checker → · Palette generator →

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