#789221#789221

#789221 is a mid, vivid yellow-green. Relative luminance 0.247; OKLCH L 61.9% C 0.137 H 122.1°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#789221
RGBrgb(120, 146, 33)
HSLhsl(74, 63%, 35%)
HSVhsv(74, 77%, 57%)
CMYKcmyk(17.8%, 0%, 77.4%, 42.7%)
CIE-LABlab(56.74, -24.83, 52.70)
CIE-LCHlch(56.74, 58.26, 115.23°)
OKLaboklab(61.86% -0.0731 0.1163)
OKLCHoklch(61.86% 0.137 122.1)
XYZxyz(18.2994, 24.6606, 5.2345)
Luminance0.2466 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#789221 #3B2192
analogous
#927321 #789221 #409221
triadic
#789221 #217892 #922178
tetradic
#789221 #219273 #3B2192 #922140
square
#789221 #219273 #3B2192 #922140
split-complementary
#789221 #214092 #732192
monochromatic
#262E0A #4F6016 #789221 #A1C42C #BAD955

Accessibility & contrast

On white

3.54
#789221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#789221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #789221
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##789221#FFFFFF#000000##000000
##7892211.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8905
Deuteranopia (green-blind)
#98882C
Tritanopia (blue-blind)
#7F8A7D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #789221;
/* rgb */ color: rgb(120, 146, 33);
/* oklch */ color: oklch(61.9% 0.137 122.1);
Tailwind
colors: {
  custom: {
    50: '#a2b266',
    500: '#789221',
    950: '#000000',
  },
}
SCSS
$custom: #789221;
$custom-light: #a2b266;
$custom-dark: #000000;
JSON
{
  "hex": "#789221",
  "rgb": {
    "r": 120,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 73.805,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.61864,
    "c": 0.13736,
    "h": 122.1
  },
  "luminance": 0.24661
}

Semantic roles & 50–950 ramp

primary
#789221
secondary
#6B53BC
accent
#42E667
background
#FAFAF6
surface
#F4F5EB
border
#CECFC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #789221

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

Preview Lab → · Contrast checker → · Palette generator →

#789221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva