#7C8240#7C8240

#7C8240 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.6% C 0.090 H 113.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7C8240
RGBrgb(124, 130, 64)
HSLhsl(65, 34%, 38%)
HSVhsv(65, 51%, 51%)
CMYKcmyk(4.6%, 0%, 50.8%, 49%)
CIE-LABlab(52.53, -12.47, 34.66)
CIE-LCHlch(52.53, 36.84, 109.79°)
OKLaboklab(58.65% -0.0357 0.0822)
OKLCHoklch(58.65% 0.09 113.4)
XYZxyz(17.2205, 20.6208, 7.9225)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8240 #464082
analogous
#826740 #7C8240 #5B8240
triadic
#7C8240 #407C82 #82407C
tetradic
#7C8240 #408267 #464082 #82405B
square
#7C8240 #408267 #464082 #82405B
split-complementary
#7C8240 #405B82 #674082
monochromatic
#2E3018 #55592C #7C8240 #A3AB54 #B9BF7D

Accessibility & contrast

On white

4.10
#7C8240 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#7C8240 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8240
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8240#FFFFFF#000000##000000
##7C82401.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D3A
Deuteranopia (green-blind)
#8A7E43
Tritanopia (blue-blind)
#837B73
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8240;
/* rgb */ color: rgb(124, 130, 64);
/* oklch */ color: oklch(58.6% 0.090 113.4);
Tailwind
colors: {
  custom: {
    50: '#a3a677',
    500: '#7c8240',
    950: '#000000',
  },
}
SCSS
$custom: #7c8240;
$custom-light: #a3a677;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8240",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 64
  },
  "hsl": {
    "h": 65.455,
    "s": 34.021,
    "l": 38.039
  },
  "oklch": {
    "l": 0.58645,
    "c": 0.08964,
    "h": 113.4
  },
  "luminance": 0.20621
}

Semantic roles & 50–950 ramp

primary
#7C8240
secondary
#7974AA
accent
#5ECA68
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #7C8240

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

Preview Lab → · Contrast checker → · Palette generator →

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