#789D31#789D31

#789D31 is a light, vivid yellow-green. Relative luminance 0.283; OKLCH L 64.7% C 0.141 H 126.4°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#789D31
RGBrgb(120, 157, 49)
HSLhsl(81, 52%, 40%)
HSVhsv(81, 69%, 62%)
CMYKcmyk(23.6%, 0%, 68.8%, 38.4%)
CIE-LABlab(60.18, -29.23, 50.10)
CIE-LCHlch(60.18, 58.00, 120.26°)
OKLaboklab(64.68% -0.0837 0.1135)
OKLCHoklch(64.68% 0.141 126.4)
XYZxyz(20.3571, 28.3284, 7.3006)
Luminance0.2833 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#789D31 #56319D
analogous
#9D8C31 #789D31 #429D31
triadic
#789D31 #31789D #9D3178
tetradic
#789D31 #319D8C #56319D #9D3142
square
#789D31 #319D8C #56319D #9D3142
split-complementary
#789D31 #31429D #8C319D
monochromatic
#314014 #546E22 #789D31 #9AC546 #B3D475

Accessibility & contrast

On white

3.15
#789D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#789D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #789D31
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##789D31#FFFFFF#000000##000000
##789D311.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59321
Deuteranopia (green-blind)
#A0903A
Tritanopia (blue-blind)
#7D9687
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #789d31;
/* rgb */ color: rgb(120, 157, 49);
/* oklch */ color: oklch(64.7% 0.141 126.4);
Tailwind
colors: {
  custom: {
    50: '#a2ba6f',
    500: '#789d31',
    950: '#000000',
  },
}
SCSS
$custom: #789d31;
$custom-light: #a2ba6f;
$custom-dark: #000000;
JSON
{
  "hex": "#789d31",
  "rgb": {
    "r": 120,
    "g": 157,
    "b": 49
  },
  "hsl": {
    "h": 80.556,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.64681,
    "c": 0.141,
    "h": 126.4
  },
  "luminance": 0.28329
}

Semantic roles & 50–950 ramp

primary
#789D31
secondary
#896EBC
accent
#4CDC7D
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#0F1108
muted
#7F807B

Preview Lab

Preview with #789D31

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

Preview Lab → · Contrast checker → · Palette generator →

#789D31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva