#7C842E#7C842E

#7C842E is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.110 H 114.3°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7C842E
RGBrgb(124, 132, 46)
HSLhsl(66, 48%, 35%)
HSVhsv(66, 65%, 52%)
CMYKcmyk(6.1%, 0%, 65.2%, 48.2%)
CIE-LABlab(52.93, -15.10, 43.88)
CIE-LCHlch(52.93, 46.40, 108.99°)
OKLaboklab(58.9% -0.0451 0.0998)
OKLCHoklch(58.9% 0.11 114.3)
XYZxyz(17.0570, 20.9852, 5.7362)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C842E #362E84
analogous
#84612E #7C842E #51842E
triadic
#7C842E #2E7C84 #842E7C
tetradic
#7C842E #2E8461 #362E84 #842E51
square
#7C842E #2E8461 #362E84 #842E51
split-complementary
#7C842E #2E5184 #612E84
monochromatic
#27290E #51571E #7C842E #A7B13E #BFC964

Accessibility & contrast

On white

4.04
#7C842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#7C842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C842E
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C842E#FFFFFF#000000##000000
##7C842E1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E23
Deuteranopia (green-blind)
#8D7F34
Tritanopia (blue-blind)
#847C72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7c842e;
/* rgb */ color: rgb(124, 132, 46);
/* oklch */ color: oklch(58.9% 0.110 114.3);
Tailwind
colors: {
  custom: {
    50: '#a4a76b',
    500: '#7c842e',
    950: '#000000',
  },
}
SCSS
$custom: #7c842e;
$custom-light: #a4a76b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c842e",
  "rgb": {
    "r": 124,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 65.581,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58905,
    "c": 0.10951,
    "h": 114.3
  },
  "luminance": 0.20985
}

Semantic roles & 50–950 ramp

primary
#7C842E
secondary
#665EB0
accent
#50D85D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C842E

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

Preview Lab → · Contrast checker → · Palette generator →

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