#7D8A40#7D8A40

#7D8A40 is a mid, moderate yellow-green. Relative luminance 0.229; OKLCH L 60.6% C 0.100 H 117.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7D8A40
RGBrgb(125, 138, 64)
HSLhsl(71, 37%, 40%)
HSVhsv(71, 54%, 54%)
CMYKcmyk(9.4%, 0%, 53.6%, 45.9%)
CIE-LABlab(54.98, -16.32, 37.58)
CIE-LCHlch(54.98, 40.97, 113.47°)
OKLaboklab(60.62% -0.0466 0.0886)
OKLCHoklch(60.62% 0.1 117.8)
XYZxyz(18.4716, 22.9072, 8.2979)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A40 #4D408A
analogous
#8A7240 #7D8A40 #588A40
triadic
#7D8A40 #407D8A #8A407D
tetradic
#7D8A40 #408A72 #4D408A #8A4058
square
#7D8A40 #408A72 #4D408A #8A4058
split-complementary
#7D8A40 #40588A #72408A
monochromatic
#313619 #57602D #7D8A40 #A1B156 #B8C480

Accessibility & contrast

On white

3.76
#7D8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7D8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A40
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A40#FFFFFF#000000##000000
##7D8A401.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928339
Deuteranopia (green-blind)
#918444
Tritanopia (blue-blind)
#838379
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7d8a40;
/* rgb */ color: rgb(125, 138, 64);
/* oklch */ color: oklch(60.6% 0.100 117.8);
Tailwind
colors: {
  custom: {
    50: '#a4ac77',
    500: '#7d8a40',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a40;
$custom-light: #a4ac77;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a40",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 70.541,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.60621,
    "c": 0.10009,
    "h": 117.8
  },
  "luminance": 0.22907
}

Semantic roles & 50–950 ramp

primary
#7D8A40
secondary
#8177AF
accent
#5BCD6F
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7D8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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