#7C8140#7C8140

#7C8140 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.4% C 0.088 H 112.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7C8140
RGBrgb(124, 129, 64)
HSLhsl(65, 34%, 38%)
HSVhsv(65, 50%, 51%)
CMYKcmyk(3.9%, 0%, 50.4%, 49.4%)
CIE-LABlab(52.24, -11.93, 34.31)
CIE-LCHlch(52.24, 36.32, 109.17°)
OKLaboklab(58.41% -0.0341 0.0815)
OKLCHoklch(58.41% 0.088 112.7)
XYZxyz(17.0881, 20.3561, 7.8784)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8140 #454081
analogous
#816540 #7C8140 #5C8140
triadic
#7C8140 #407C81 #81407C
tetradic
#7C8140 #408165 #454081 #81405C
square
#7C8140 #408165 #454081 #81405C
split-complementary
#7C8140 #405C81 #654081
monochromatic
#2D2F17 #55582C #7C8140 #A3AA54 #B9BE7D

Accessibility & contrast

On white

4.14
#7C8140 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#7C8140 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8140
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8140#FFFFFF#000000##000000
##7C81401.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#897C3A
Deuteranopia (green-blind)
#897D43
Tritanopia (blue-blind)
#837A72
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8140;
/* rgb */ color: rgb(124, 129, 64);
/* oklch */ color: oklch(58.4% 0.088 112.7);
Tailwind
colors: {
  custom: {
    50: '#a3a576',
    500: '#7c8140',
    950: '#000000',
  },
}
SCSS
$custom: #7c8140;
$custom-light: #a3a576;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8140",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 64
  },
  "hsl": {
    "h": 64.615,
    "s": 33.679,
    "l": 37.843
  },
  "oklch": {
    "l": 0.5841,
    "c": 0.08833,
    "h": 112.7
  },
  "luminance": 0.20356
}

Semantic roles & 50–950 ramp

primary
#7C8140
secondary
#7874A9
accent
#5ECA66
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #7C8140

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

Preview Lab → · Contrast checker → · Palette generator →

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