#7C8040#7C8040

#7C8040 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.2% C 0.087 H 112.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7C8040
RGBrgb(124, 128, 64)
HSLhsl(64, 33%, 38%)
HSVhsv(64, 50%, 50%)
CMYKcmyk(3.1%, 0%, 50%, 49.8%)
CIE-LABlab(51.94, -11.38, 33.96)
CIE-LCHlch(51.94, 35.81, 108.53°)
OKLaboklab(58.18% -0.0326 0.0807)
OKLCHoklch(58.18% 0.087 112)
XYZxyz(16.9571, 20.0939, 7.8347)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8040 #444080
analogous
#806440 #7C8040 #5C8040
triadic
#7C8040 #407C80 #80407C
tetradic
#7C8040 #408064 #444080 #80405C
square
#7C8040 #408064 #444080 #80405C
split-complementary
#7C8040 #405C80 #644080
monochromatic
#2D2E17 #54572C #7C8040 #A4A954 #BABE7D

Accessibility & contrast

On white

4.18
#7C8040 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7C8040 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8040
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8040#FFFFFF#000000##000000
##7C80401.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#887B3A
Deuteranopia (green-blind)
#887D43
Tritanopia (blue-blind)
#837971
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c8040;
/* rgb */ color: rgb(124, 128, 64);
/* oklch */ color: oklch(58.2% 0.087 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a476',
    500: '#7c8040',
    950: '#000000',
  },
}
SCSS
$custom: #7c8040;
$custom-light: #a3a476;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8040",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 64
  },
  "hsl": {
    "h": 63.75,
    "s": 33.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.58175,
    "c": 0.08702,
    "h": 112
  },
  "luminance": 0.20094
}

Semantic roles & 50–950 ramp

primary
#7C8040
secondary
#7774A8
accent
#5EC965
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #7C8040

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

Preview Lab → · Contrast checker → · Palette generator →

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