#7B9A1F#7B9A1F

#7B9A1F is a light, vivid yellow-green. Relative luminance 0.274; OKLCH L 64.0% C 0.147 H 123.4°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7B9A1F
RGBrgb(123, 154, 31)
HSLhsl(75, 66%, 36%)
HSVhsv(75, 80%, 60%)
CMYKcmyk(20.1%, 0%, 79.9%, 39.6%)
CIE-LABlab(59.36, -27.58, 55.84)
CIE-LCHlch(59.36, 62.28, 116.29°)
OKLaboklab(64.03% -0.0809 0.1225)
OKLCHoklch(64.03% 0.147 123.4)
XYZxyz(19.9716, 27.4210, 5.5367)
Luminance0.2742 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B9A1F #3E1F9A
analogous
#9A7C1F #7B9A1F #3E9A1F
triadic
#7B9A1F #1F7B9A #9A1F7B
tetradic
#7B9A1F #1F9A7C #3E1F9A #9A1F3E
square
#7B9A1F #1F9A7C #3E1F9A #9A1F3E
split-complementary
#7B9A1F #1F3E9A #7C1F9A
monochromatic
#2A340A #526715 #7B9A1F #A4CD29 #BBDD56

Accessibility & contrast

On white

3.24
#7B9A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#7B9A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B9A1F
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B9A1F#FFFFFF#000000##000000
##7B9A1F1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#9F8F2C
Tritanopia (blue-blind)
#829283
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #7b9a1f;
/* rgb */ color: rgb(123, 154, 31);
/* oklch */ color: oklch(64.0% 0.147 123.4);
Tailwind
colors: {
  custom: {
    50: '#a5b766',
    500: '#7b9a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7b9a1f;
$custom-light: #a5b766;
$custom-dark: #000000;
JSON
{
  "hex": "#7b9a1f",
  "rgb": {
    "r": 123,
    "g": 154,
    "b": 31
  },
  "hsl": {
    "h": 75.122,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64031,
    "c": 0.14682,
    "h": 123.4
  },
  "luminance": 0.27421
}

Semantic roles & 50–950 ramp

primary
#7B9A1F
secondary
#6F54C1
accent
#3EE969
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B9A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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