#7B8F1F#7B8F1F

#7B8F1F is a mid, vivid yellow-green. Relative luminance 0.240; OKLCH L 61.4% C 0.134 H 119.6°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7B8F1F
RGBrgb(123, 143, 31)
HSLhsl(71, 64%, 34%)
HSVhsv(71, 78%, 56%)
CMYKcmyk(14%, 0%, 78.3%, 43.9%)
CIE-LABlab(56.04, -22.13, 52.79)
CIE-LCHlch(56.04, 57.24, 112.75°)
OKLaboklab(61.35% -0.066 0.1161)
OKLCHoklch(61.35% 0.134 119.6)
XYZxyz(18.2385, 23.9549, 4.9590)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8F1F #331F8F
analogous
#8F6B1F #7B8F1F #438F1F
triadic
#7B8F1F #1F7B8F #8F1F7B
tetradic
#7B8F1F #1F8F6B #331F8F #8F1F43
square
#7B8F1F #1F8F6B #331F8F #8F1F43
split-complementary
#7B8F1F #1F438F #6B1F8F
monochromatic
#242A09 #505D14 #7B8F1F #A6C12A #C0D94F

Accessibility & contrast

On white

3.63
#7B8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#7B8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8F1F
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8F1F#FFFFFF#000000##000000
##7B8F1F1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#998601
Deuteranopia (green-blind)
#96872A
Tritanopia (blue-blind)
#83877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7b8f1f;
/* rgb */ color: rgb(123, 143, 31);
/* oklch */ color: oklch(61.4% 0.134 119.6);
Tailwind
colors: {
  custom: {
    50: '#a4af65',
    500: '#7b8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #7b8f1f;
$custom-light: #a4af65;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8f1f",
  "rgb": {
    "r": 123,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 70.714,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61351,
    "c": 0.13351,
    "h": 119.6
  },
  "luminance": 0.23955
}

Semantic roles & 50–950 ramp

primary
#7B8F1F
secondary
#624EBC
accent
#40E75E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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