#7D9828#7D9828

#7D9828 is a light, vivid yellow-green. Relative luminance 0.270; OKLCH L 63.7% C 0.138 H 122.4°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7D9828
RGBrgb(125, 152, 40)
HSLhsl(74, 58%, 38%)
HSVhsv(74, 74%, 60%)
CMYKcmyk(17.8%, 0%, 73.7%, 40.4%)
CIE-LABlab(58.95, -25.31, 52.46)
CIE-LCHlch(58.95, 58.24, 115.75°)
OKLaboklab(63.75% -0.0741 0.1169)
OKLCHoklch(63.75% 0.138 122.4)
XYZxyz(20.0690, 26.9696, 6.1554)
Luminance0.2697 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D9828 #432898
analogous
#987B28 #7D9828 #459828
triadic
#7D9828 #287D98 #98287D
tetradic
#7D9828 #28987B #432898 #982845
square
#7D9828 #28987B #432898 #982845
split-complementary
#7D9828 #284598 #7B2898
monochromatic
#2D370F #55681B #7D9828 #A5C835 #BBD664

Accessibility & contrast

On white

3.28
#7D9828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#7D9828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D9828
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D9828#FFFFFF#000000##000000
##7D98281.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E13
Deuteranopia (green-blind)
#9E8E32
Tritanopia (blue-blind)
#849082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7d9828;
/* rgb */ color: rgb(125, 152, 40);
/* oklch */ color: oklch(63.7% 0.138 122.4);
Tailwind
colors: {
  custom: {
    50: '#a6b66a',
    500: '#7d9828',
    950: '#000000',
  },
}
SCSS
$custom: #7d9828;
$custom-light: #a6b66a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d9828",
  "rgb": {
    "r": 125,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 74.464,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63746,
    "c": 0.13836,
    "h": 122.4
  },
  "luminance": 0.2697
}

Semantic roles & 50–950 ramp

primary
#7D9828
secondary
#7660BC
accent
#46E26C
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101107
muted
#7F807A

Preview Lab

Preview with #7D9828

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

Preview Lab → · Contrast checker → · Palette generator →

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