#7B9822#7B9822

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

Color values

HEX#7B9822
RGBrgb(123, 152, 34)
HSLhsl(75, 63%, 36%)
HSVhsv(75, 78%, 60%)
CMYKcmyk(19.1%, 0%, 77.6%, 40.4%)
CIE-LABlab(58.77, -26.47, 54.34)
CIE-LCHlch(58.77, 60.44, 115.97°)
OKLaboklab(63.56% -0.0776 0.1199)
OKLCHoklch(63.56% 0.143 122.9)
XYZxyz(19.6856, 26.7828, 5.6456)
Luminance0.2678 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B9822 #3F2298
analogous
#987A22 #7B9822 #409822
triadic
#7B9822 #227B98 #98227B
tetradic
#7B9822 #22987A #3F2298 #982240
square
#7B9822 #22987A #3F2298 #982240
split-complementary
#7B9822 #224098 #7A2298
monochromatic
#2A340C #536617 #7B9822 #A3CA2D #BBDA5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B9822#FFFFFF#000000##000000
##7B98221.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)
#A18E03
Deuteranopia (green-blind)
#9D8D2D
Tritanopia (blue-blind)
#829082
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7b9822;
/* rgb */ color: rgb(123, 152, 34);
/* oklch */ color: oklch(63.6% 0.143 122.9);
Tailwind
colors: {
  custom: {
    50: '#a5b667',
    500: '#7b9822',
    950: '#000000',
  },
}
SCSS
$custom: #7b9822;
$custom-light: #a5b667;
$custom-dark: #000000;
JSON
{
  "hex": "#7b9822",
  "rgb": {
    "r": 123,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 74.746,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63559,
    "c": 0.14281,
    "h": 122.9
  },
  "luminance": 0.26783
}

Semantic roles & 50–950 ramp

primary
#7B9822
secondary
#7157BE
accent
#41E66A
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B9822

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

Preview Lab → · Contrast checker → · Palette generator →

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