#7B8A42#7B8A42

#7B8A42 is a mid, moderate yellow-green. Relative luminance 0.228; OKLCH L 60.5% C 0.099 H 119.2°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7B8A42
RGBrgb(123, 138, 66)
HSLhsl(73, 35%, 40%)
HSVhsv(73, 52%, 54%)
CMYKcmyk(10.9%, 0%, 52.2%, 45.9%)
CIE-LABlab(54.85, -16.97, 36.37)
CIE-LCHlch(54.85, 40.14, 115.01°)
OKLaboklab(60.49% -0.0481 0.0862)
OKLCHoklch(60.49% 0.099 119.2)
XYZxyz(18.2404, 22.7814, 8.5895)
Luminance0.2278 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A42 #51428A
analogous
#8A7542 #7B8A42 #578A42
triadic
#7B8A42 #427B8A #8A427B
tetradic
#7B8A42 #428A75 #51428A #8A4257
square
#7B8A42 #428A75 #51428A #8A4257
split-complementary
#7B8A42 #42578A #75428A
monochromatic
#31371A #56612E #7B8A42 #9EB059 #B6C483

Accessibility & contrast

On white

3.78
#7B8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#7B8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8A42
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8A42#FFFFFF#000000##000000
##7B8A421.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#92833B
Deuteranopia (green-blind)
#908446
Tritanopia (blue-blind)
#81847A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8a42;
/* rgb */ color: rgb(123, 138, 66);
/* oklch */ color: oklch(60.5% 0.099 119.2);
Tailwind
colors: {
  custom: {
    50: '#a3ac78',
    500: '#7b8a42',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a42;
$custom-light: #a3ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a42",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 72.5,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.60486,
    "c": 0.0987,
    "h": 119.2
  },
  "luminance": 0.22781
}

Semantic roles & 50–950 ramp

primary
#7B8A42
secondary
#8479AE
accent
#5CCB74
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7B8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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