#7B8F22#7B8F22

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

Color values

HEX#7B8F22
RGBrgb(123, 143, 34)
HSLhsl(71, 62%, 35%)
HSVhsv(71, 76%, 56%)
CMYKcmyk(14%, 0%, 76.2%, 43.9%)
CIE-LABlab(56.06, -21.99, 51.78)
CIE-LCHlch(56.06, 56.26, 113.01°)
OKLaboklab(61.37% -0.0653 0.1145)
OKLCHoklch(61.37% 0.132 119.7)
XYZxyz(18.2799, 23.9715, 5.1770)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8F22 #36228F
analogous
#8F6D22 #7B8F22 #458F22
triadic
#7B8F22 #227B8F #8F227B
tetradic
#7B8F22 #228F6D #36228F #8F2245
square
#7B8F22 #228F6D #36228F #8F2245
split-complementary
#7B8F22 #22458F #6D228F
monochromatic
#262C0A #505E16 #7B8F22 #A6C02E #BFD755

Accessibility & contrast

On white

3.62
#7B8F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8F22#FFFFFF#000000##000000
##7B8F221.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988609
Deuteranopia (green-blind)
#96872C
Tritanopia (blue-blind)
#82877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7b8f22;
/* rgb */ color: rgb(123, 143, 34);
/* oklch */ color: oklch(61.4% 0.132 119.7);
Tailwind
colors: {
  custom: {
    50: '#a4af66',
    500: '#7b8f22',
    950: '#000000',
  },
}
SCSS
$custom: #7b8f22;
$custom-light: #a4af66;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8f22",
  "rgb": {
    "r": 123,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 71.009,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61369,
    "c": 0.13181,
    "h": 119.7
  },
  "luminance": 0.23971
}

Semantic roles & 50–950 ramp

primary
#7B8F22
secondary
#6552BA
accent
#43E561
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8F22

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

Preview Lab → · Contrast checker → · Palette generator →

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