#7E9731#7E9731

#7E9731 is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.6% C 0.130 H 122.0°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7E9731
RGBrgb(126, 151, 49)
HSLhsl(75, 51%, 39%)
HSVhsv(75, 68%, 59%)
CMYKcmyk(16.6%, 0%, 67.5%, 40.8%)
CIE-LABlab(58.78, -23.82, 48.77)
CIE-LCHlch(58.78, 54.28, 116.03°)
OKLaboklab(63.65% -0.0692 0.1105)
OKLCHoklch(63.65% 0.13 122)
XYZxyz(20.2254, 26.7906, 7.0107)
Luminance0.2679 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9731 #4A3197
analogous
#977D31 #7E9731 #4B9731
triadic
#7E9731 #317E97 #97317E
tetradic
#7E9731 #31977D #4A3197 #97314B
square
#7E9731 #31977D #4A3197 #97314B
split-complementary
#7E9731 #314B97 #7D3197
monochromatic
#313B13 #576922 #7E9731 #A3C243 #BAD171

Accessibility & contrast

On white

3.30
#7E9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#7E9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9731
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9731#FFFFFF#000000##000000
##7E97311.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e9731;
/* rgb */ color: rgb(126, 151, 49);
/* oklch */ color: oklch(63.6% 0.130 122.0);
Tailwind
colors: {
  custom: {
    50: '#a6b56f',
    500: '#7e9731',
    950: '#000000',
  },
}
SCSS
$custom: #7e9731;
$custom-light: #a6b56f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9731",
  "rgb": {
    "r": 126,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 74.706,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.6365,
    "c": 0.13039,
    "h": 122
  },
  "luminance": 0.26791
}

Semantic roles & 50–950 ramp

primary
#7E9731
secondary
#7E6BB9
accent
#4DDA70
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101108
muted
#7F807B

Preview Lab

Preview with #7E9731

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

Preview Lab → · Contrast checker → · Palette generator →

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