#7D8945#7D8945

#7D8945 is a mid, moderate yellow-green. Relative luminance 0.227; OKLCH L 60.5% C 0.093 H 117.5°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7D8945
RGBrgb(125, 137, 69)
HSLhsl(71, 33%, 40%)
HSVhsv(71, 50%, 54%)
CMYKcmyk(8.8%, 0%, 49.6%, 46.3%)
CIE-LABlab(54.74, -15.28, 34.74)
CIE-LCHlch(54.74, 37.95, 113.73°)
OKLaboklab(60.45% -0.0432 0.0828)
OKLCHoklch(60.45% 0.093 117.5)
XYZxyz(18.4775, 22.6811, 9.0336)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8945 #514589
analogous
#897345 #7D8945 #5B8945
triadic
#7D8945 #457D89 #89457D
tetradic
#7D8945 #458973 #514589 #89455B
square
#7D8945 #458973 #514589 #89455B
split-complementary
#7D8945 #455B89 #734589
monochromatic
#33381C #586031 #7D8945 #A0AE5E #B8C286

Accessibility & contrast

On white

3.79
#7D8945 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7D8945 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8945
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8945#FFFFFF#000000##000000
##7D89451.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91833F
Deuteranopia (green-blind)
#908349
Tritanopia (blue-blind)
#838379
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8945;
/* rgb */ color: rgb(125, 137, 69);
/* oklch */ color: oklch(60.5% 0.093 117.5);
Tailwind
colors: {
  custom: {
    50: '#a4ab7a',
    500: '#7d8945',
    950: '#000000',
  },
}
SCSS
$custom: #7d8945;
$custom-light: #a4ab7a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8945",
  "rgb": {
    "r": 125,
    "g": 137,
    "b": 69
  },
  "hsl": {
    "h": 70.588,
    "s": 33.01,
    "l": 40.392
  },
  "oklch": {
    "l": 0.60453,
    "c": 0.09341,
    "h": 117.5
  },
  "luminance": 0.22681
}

Semantic roles & 50–950 ramp

primary
#7D8945
secondary
#857CAD
accent
#5FC971
background
#FAFAF7
surface
#F4F4EE
border
#CECEC9
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7D8945

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

Preview Lab → · Contrast checker → · Palette generator →

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