#7B8D22#7B8D22

#7B8D22 is a mid, vivid yellow-green. Relative luminance 0.234; OKLCH L 60.9% C 0.129 H 118.9°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7B8D22
RGBrgb(123, 141, 34)
HSLhsl(70, 61%, 34%)
HSVhsv(70, 76%, 55%)
CMYKcmyk(12.8%, 0%, 75.9%, 44.7%)
CIE-LABlab(55.46, -20.97, 51.21)
CIE-LCHlch(55.46, 55.34, 112.27°)
OKLaboklab(60.89% -0.0625 0.1133)
OKLCHoklch(60.89% 0.129 118.9)
XYZxyz(17.9824, 23.3763, 5.0778)
Luminance0.2338 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8D22 #34228D
analogous
#8D6A22 #7B8D22 #468D22
triadic
#7B8D22 #227B8D #8D227B
tetradic
#7B8D22 #228D6A #34228D #8D2246
square
#7B8D22 #228D6A #34228D #8D2246
split-complementary
#7B8D22 #22468D #6A228D
monochromatic
#252A0A #505C16 #7B8D22 #A6BE2E #C0D654

Accessibility & contrast

On white

3.70
#7B8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#7B8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8D22
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8D22#FFFFFF#000000##000000
##7B8D221.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850B
Deuteranopia (green-blind)
#95852B
Tritanopia (blue-blind)
#838579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7b8d22;
/* rgb */ color: rgb(123, 141, 34);
/* oklch */ color: oklch(60.9% 0.129 118.9);
Tailwind
colors: {
  custom: {
    50: '#a4ae66',
    500: '#7b8d22',
    950: '#000000',
  },
}
SCSS
$custom: #7b8d22;
$custom-light: #a4ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8d22",
  "rgb": {
    "r": 123,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 70.093,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60885,
    "c": 0.12938,
    "h": 118.9
  },
  "luminance": 0.23376
}

Semantic roles & 50–950 ramp

primary
#7B8D22
secondary
#6351B9
accent
#44E45F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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