#7C842F#7C842F

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

Color values

HEX#7C842F
RGBrgb(124, 132, 47)
HSLhsl(66, 47%, 35%)
HSVhsv(66, 64%, 52%)
CMYKcmyk(6.1%, 0%, 64.4%, 48.2%)
CIE-LABlab(52.94, -15.03, 43.44)
CIE-LCHlch(52.94, 45.96, 109.08°)
OKLaboklab(58.91% -0.0447 0.099)
OKLCHoklch(58.91% 0.109 114.3)
XYZxyz(17.0769, 20.9931, 5.8413)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C842F #372F84
analogous
#84612F #7C842F #51842F
triadic
#7C842F #2F7C84 #842F7C
tetradic
#7C842F #2F8461 #372F84 #842F51
square
#7C842F #2F8461 #372F84 #842F51
split-complementary
#7C842F #2F5184 #612F84
monochromatic
#272A0F #52571F #7C842F #A6B13F #BFC865

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C842F#FFFFFF#000000##000000
##7C842F1.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)
#8D7E24
Deuteranopia (green-blind)
#8D7F35
Tritanopia (blue-blind)
#847C72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7c842f;
/* rgb */ color: rgb(124, 132, 47);
/* oklch */ color: oklch(58.9% 0.109 114.3);
Tailwind
colors: {
  custom: {
    50: '#a4a76c',
    500: '#7c842f',
    950: '#000000',
  },
}
SCSS
$custom: #7c842f;
$custom-light: #a4a76c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c842f",
  "rgb": {
    "r": 124,
    "g": 132,
    "b": 47
  },
  "hsl": {
    "h": 65.647,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58915,
    "c": 0.10867,
    "h": 114.3
  },
  "luminance": 0.20993
}

Semantic roles & 50–950 ramp

primary
#7C842F
secondary
#6760AF
accent
#51D75D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C842F

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

Preview Lab → · Contrast checker → · Palette generator →

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