#7D9731#7D9731

#7D9731 is a light, vivid yellow-green. Relative luminance 0.267; OKLCH L 63.6% C 0.131 H 122.5°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7D9731
RGBrgb(125, 151, 49)
HSLhsl(75, 51%, 39%)
HSVhsv(75, 68%, 59%)
CMYKcmyk(17.2%, 0%, 67.5%, 40.8%)
CIE-LABlab(58.71, -24.24, 48.67)
CIE-LCHlch(58.71, 54.38, 116.47°)
OKLaboklab(63.58% -0.0703 0.1104)
OKLCHoklch(63.58% 0.131 122.5)
XYZxyz(20.0787, 26.7149, 7.0038)
Luminance0.2671 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D9731 #4B3197
analogous
#977E31 #7D9731 #4A9731
triadic
#7D9731 #317D97 #97317D
tetradic
#7D9731 #31977E #4B3197 #97314A
square
#7D9731 #31977E #4B3197 #97314A
split-complementary
#7D9731 #314A97 #7E3197
monochromatic
#313B13 #576922 #7D9731 #A2C243 #B9D171

Accessibility & contrast

On white

3.31
#7D9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#7D9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D9731
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D9731#FFFFFF#000000##000000
##7D97311.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08E23
Deuteranopia (green-blind)
#9C8D39
Tritanopia (blue-blind)
#838F82
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7d9731;
/* rgb */ color: rgb(125, 151, 49);
/* oklch */ color: oklch(63.6% 0.131 122.5);
Tailwind
colors: {
  custom: {
    50: '#a5b56f',
    500: '#7d9731',
    950: '#000000',
  },
}
SCSS
$custom: #7d9731;
$custom-light: #a5b56f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d9731",
  "rgb": {
    "r": 125,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 75.294,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63575,
    "c": 0.13082,
    "h": 122.5
  },
  "luminance": 0.26715
}

Semantic roles & 50–950 ramp

primary
#7D9731
secondary
#7F6BB9
accent
#4DDA71
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101108
muted
#7F807B

Preview Lab

Preview with #7D9731

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

Preview Lab → · Contrast checker → · Palette generator →

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