#7D8928#7D8928

#7D8928 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.120 H 116.2°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7D8928
RGBrgb(125, 137, 40)
HSLhsl(67, 55%, 35%)
HSVhsv(67, 71%, 54%)
CMYKcmyk(8.8%, 0%, 70.8%, 46.3%)
CIE-LABlab(54.45, -17.69, 48.02)
CIE-LCHlch(54.45, 51.17, 110.22°)
OKLaboklab(60.13% -0.053 0.1075)
OKLCHoklch(60.13% 0.12 116.2)
XYZxyz(17.7865, 22.4047, 5.3946)
Luminance0.2240 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8928 #342889
analogous
#896528 #7D8928 #4C8928
triadic
#7D8928 #287D89 #89287D
tetradic
#7D8928 #288965 #342889 #89284C
square
#7D8928 #288965 #342889 #89284C
split-complementary
#7D8928 #284C89 #652889
monochromatic
#272A0C #525A1A #7D8928 #A8B836 #C1CF5C

Accessibility & contrast

On white

3.83
#7D8928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7D8928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8928
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8928#FFFFFF#000000##000000
##7D89281.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938219
Deuteranopia (green-blind)
#92832F
Tritanopia (blue-blind)
#858176
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7d8928;
/* rgb */ color: rgb(125, 137, 40);
/* oklch */ color: oklch(60.1% 0.120 116.2);
Tailwind
colors: {
  custom: {
    50: '#a5ab68',
    500: '#7d8928',
    950: '#000000',
  },
}
SCSS
$custom: #7d8928;
$custom-light: #a5ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8928",
  "rgb": {
    "r": 125,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 67.423,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60129,
    "c": 0.11987,
    "h": 116.2
  },
  "luminance": 0.22404
}

Semantic roles & 50–950 ramp

primary
#7D8928
secondary
#6458B5
accent
#4ADE5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8928

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

Preview Lab → · Contrast checker → · Palette generator →

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