#7B9D1F#7B9D1F

#7B9D1F is a light, vivid yellow-green. Relative luminance 0.284; OKLCH L 64.8% C 0.150 H 124.3°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7B9D1F
RGBrgb(123, 157, 31)
HSLhsl(76, 67%, 37%)
HSVhsv(76, 80%, 62%)
CMYKcmyk(21.7%, 0%, 80.3%, 38.4%)
CIE-LABlab(60.27, -29.03, 56.67)
CIE-LCHlch(60.27, 63.67, 117.12°)
OKLaboklab(64.77% -0.0848 0.1243)
OKLCHoklch(64.77% 0.15 124.3)
XYZxyz(20.4729, 28.4236, 5.7038)
Luminance0.2842 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B9D1F #411F9D
analogous
#9D801F #7B9D1F #3C9D1F
triadic
#7B9D1F #1F7B9D #9D1F7B
tetradic
#7B9D1F #1F9D80 #411F9D #9D1F3C
square
#7B9D1F #1F9D80 #411F9D #9D1F3C
split-complementary
#7B9D1F #1F3C9D #801F9D
monochromatic
#2B370B #536A15 #7B9D1F #A3D029 #BADE58

Accessibility & contrast

On white

3.14
#7B9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#7B9D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B9D1F
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B9D1F#FFFFFF#000000##000000
##7B9D1F1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A2912C
Tritanopia (blue-blind)
#819586
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7b9d1f;
/* rgb */ color: rgb(123, 157, 31);
/* oklch */ color: oklch(64.8% 0.150 124.3);
Tailwind
colors: {
  custom: {
    50: '#a5ba67',
    500: '#7b9d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7b9d1f;
$custom-light: #a5ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#7b9d1f",
  "rgb": {
    "r": 123,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 76.19,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.64765,
    "c": 0.15047,
    "h": 124.3
  },
  "luminance": 0.28424
}

Semantic roles & 50–950 ramp

primary
#7B9D1F
secondary
#7356C2
accent
#3EEA6C
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B9D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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