#7E842A#7E842A

#7E842A is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.0% C 0.112 H 113.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7E842A
RGBrgb(126, 132, 42)
HSLhsl(64, 52%, 34%)
HSVhsv(64, 68%, 52%)
CMYKcmyk(4.5%, 0%, 68.2%, 48.2%)
CIE-LABlab(53.06, -14.48, 45.81)
CIE-LCHlch(53.06, 48.04, 107.54°)
OKLaboklab(59.04% -0.0439 0.1032)
OKLCHoklch(59.04% 0.112 113)
XYZxyz(17.2738, 21.1057, 5.3539)
Luminance0.2110 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E842A #302A84
analogous
#845D2A #7E842A #51842A
triadic
#7E842A #2A7E84 #842A7E
tetradic
#7E842A #2A845D #302A84 #842A51
square
#7E842A #2A845D #302A84 #842A51
split-complementary
#7E842A #2A5184 #5D2A84
monochromatic
#25270C #52561B #7E842A #AAB239 #C4CB5D

Accessibility & contrast

On white

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

On black

5.22
#7E842A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E842A
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E842A#FFFFFF#000000##000000
##7E842A1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e842a;
/* rgb */ color: rgb(126, 132, 42);
/* oklch */ color: oklch(59.0% 0.112 113.0);
Tailwind
colors: {
  custom: {
    50: '#a6a769',
    500: '#7e842a',
    950: '#000000',
  },
}
SCSS
$custom: #7e842a;
$custom-light: #a6a769;
$custom-dark: #000000;
JSON
{
  "hex": "#7e842a",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 64,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59041,
    "c": 0.11213,
    "h": 113
  },
  "luminance": 0.21105
}

Semantic roles & 50–950 ramp

primary
#7E842A
secondary
#5F59B1
accent
#4DDB56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E842A

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

Preview Lab → · Contrast checker → · Palette generator →

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