#7D9840#7D9840

#7D9840 is a light, moderate yellow-green. Relative luminance 0.272; OKLCH L 64.0% C 0.119 H 124.0°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7D9840
RGBrgb(125, 152, 64)
HSLhsl(78, 41%, 42%)
HSVhsv(78, 58%, 60%)
CMYKcmyk(17.8%, 0%, 57.9%, 40.4%)
CIE-LABlab(59.15, -23.51, 42.41)
CIE-LCHlch(59.15, 48.49, 119.01°)
OKLaboklab(63.97% -0.0668 0.099)
OKLCHoklch(63.97% 0.119 124)
XYZxyz(20.6112, 27.1865, 9.0111)
Luminance0.2719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D9840 #5B4098
analogous
#988740 #7D9840 #519840
triadic
#7D9840 #407D98 #98407D
tetradic
#7D9840 #409887 #5B4098 #984051
square
#7D9840 #409887 #5B4098 #984051
split-complementary
#7D9840 #405198 #874098
monochromatic
#36421C #5A6D2E #7D9840 #9DBA5B #B7CC86

Accessibility & contrast

On white

3.26
#7D9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#7D9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D9840
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D9840#FFFFFF#000000##000000
##7D98401.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08F37
Deuteranopia (green-blind)
#9C8E46
Tritanopia (blue-blind)
#829185
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7d9840;
/* rgb */ color: rgb(125, 152, 64);
/* oklch */ color: oklch(64.0% 0.119 124.0);
Tailwind
colors: {
  custom: {
    50: '#a5b678',
    500: '#7d9840',
    950: '#000000',
  },
}
SCSS
$custom: #7d9840;
$custom-light: #a5b678;
$custom-dark: #000000;
JSON
{
  "hex": "#7d9840",
  "rgb": {
    "r": 125,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 78.409,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.63972,
    "c": 0.11942,
    "h": 124
  },
  "luminance": 0.27187
}

Semantic roles & 50–950 ramp

primary
#7D9840
secondary
#8F7DB7
accent
#57D17C
background
#FAFBF7
surface
#F4F6ED
border
#CED0C8
text
#0F1109
muted
#7F807B

Preview Lab

Preview with #7D9840

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

Preview Lab → · Contrast checker → · Palette generator →

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