#7E842E#7E842E

#7E842E is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.1% C 0.109 H 113.1°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7E842E
RGBrgb(126, 132, 46)
HSLhsl(64, 48%, 35%)
HSVhsv(64, 65%, 52%)
CMYKcmyk(4.5%, 0%, 65.2%, 48.2%)
CIE-LABlab(53.10, -14.21, 44.10)
CIE-LCHlch(53.10, 46.33, 107.86°)
OKLaboklab(59.08% -0.0427 0.1002)
OKLCHoklch(59.08% 0.109 113.1)
XYZxyz(17.3490, 21.1358, 5.7499)
Luminance0.2114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E842E #342E84
analogous
#845F2E #7E842E #53842E
triadic
#7E842E #2E7E84 #842E7E
tetradic
#7E842E #2E845F #342E84 #842E53
square
#7E842E #2E845F #342E84 #842E53
split-complementary
#7E842E #2E5384 #5F2E84
monochromatic
#27290E #53571E #7E842E #A9B13E #C2C964

Accessibility & contrast

On white

4.02
#7E842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#7E842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E842E
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E842E#FFFFFF#000000##000000
##7E842E1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E23
Deuteranopia (green-blind)
#8E8034
Tritanopia (blue-blind)
#867C72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e842e;
/* rgb */ color: rgb(126, 132, 46);
/* oklch */ color: oklch(59.1% 0.109 113.1);
Tailwind
colors: {
  custom: {
    50: '#a6a76b',
    500: '#7e842e',
    950: '#000000',
  },
}
SCSS
$custom: #7e842e;
$custom-light: #a6a76b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e842e",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 64.186,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59077,
    "c": 0.10894,
    "h": 113.1
  },
  "luminance": 0.21135
}

Semantic roles & 50–950 ramp

primary
#7E842E
secondary
#645EB0
accent
#50D859
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E842E

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

Preview Lab → · Contrast checker → · Palette generator →

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