#7D8A42#7D8A42

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

Color values

HEX#7D8A42
RGBrgb(125, 138, 66)
HSLhsl(71, 35%, 40%)
HSVhsv(71, 52%, 54%)
CMYKcmyk(9.4%, 0%, 52.2%, 45.9%)
CIE-LABlab(55.00, -16.12, 36.59)
CIE-LCHlch(55.00, 39.99, 113.77°)
OKLaboklab(60.65% -0.0458 0.0866)
OKLCHoklch(60.65% 0.098 117.9)
XYZxyz(18.5295, 22.9304, 8.6031)
Luminance0.2293 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A42 #4F428A
analogous
#8A7342 #7D8A42 #598A42
triadic
#7D8A42 #427D8A #8A427D
tetradic
#7D8A42 #428A73 #4F428A #8A4259
square
#7D8A42 #428A73 #4F428A #8A4259
split-complementary
#7D8A42 #42598A #73428A
monochromatic
#32371A #58612E #7D8A42 #A0B059 #B8C483

Accessibility & contrast

On white

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

On black

5.59
#7D8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A42
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A42#FFFFFF#000000##000000
##7D8A421.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#92833B
Deuteranopia (green-blind)
#918446
Tritanopia (blue-blind)
#83837A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7d8a42;
/* rgb */ color: rgb(125, 138, 66);
/* oklch */ color: oklch(60.6% 0.098 117.9);
Tailwind
colors: {
  custom: {
    50: '#a4ac78',
    500: '#7d8a42',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a42;
$custom-light: #a4ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a42",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 70.833,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.60648,
    "c": 0.09802,
    "h": 117.9
  },
  "luminance": 0.2293
}

Semantic roles & 50–950 ramp

primary
#7D8A42
secondary
#8379AE
accent
#5CCB70
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7D8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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