#7B9B1F#7B9B1F

#7B9B1F is a light, vivid yellow-green. Relative luminance 0.278; OKLCH L 64.3% C 0.148 H 123.7°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7B9B1F
RGBrgb(123, 155, 31)
HSLhsl(75, 67%, 36%)
HSVhsv(75, 80%, 61%)
CMYKcmyk(20.6%, 0%, 80%, 39.2%)
CIE-LABlab(59.66, -28.07, 56.11)
CIE-LCHlch(59.66, 62.74, 116.57°)
OKLaboklab(64.28% -0.0822 0.1231)
OKLCHoklch(64.28% 0.148 123.7)
XYZxyz(20.1373, 27.7524, 5.5919)
Luminance0.2775 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B9B1F #3F1F9B
analogous
#9B7D1F #7B9B1F #3D9B1F
triadic
#7B9B1F #1F7B9B #9B1F7B
tetradic
#7B9B1F #1F9B7D #3F1F9B #9B1F3D
square
#7B9B1F #1F9B7D #3F1F9B #9B1F3D
split-complementary
#7B9B1F #1F3D9B #7D1F9B
monochromatic
#2A350B #536815 #7B9B1F #A3CE29 #BBDD57

Accessibility & contrast

On white

3.21
#7B9B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#7B9B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B9B1F
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B9B1F#FFFFFF#000000##000000
##7B9B1F1.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49100
Deuteranopia (green-blind)
#A08F2C
Tritanopia (blue-blind)
#819384
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #7b9b1f;
/* rgb */ color: rgb(123, 155, 31);
/* oklch */ color: oklch(64.3% 0.148 123.7);
Tailwind
colors: {
  custom: {
    50: '#a5b866',
    500: '#7b9b1f',
    950: '#000000',
  },
}
SCSS
$custom: #7b9b1f;
$custom-light: #a5b866;
$custom-dark: #000000;
JSON
{
  "hex": "#7b9b1f",
  "rgb": {
    "r": 123,
    "g": 155,
    "b": 31
  },
  "hsl": {
    "h": 75.484,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64276,
    "c": 0.14803,
    "h": 123.7
  },
  "luminance": 0.27753
}

Semantic roles & 50–950 ramp

primary
#7B9B1F
secondary
#7155C1
accent
#3EEA6A
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B9B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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