#7C8F22#7C8F22

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

Color values

HEX#7C8F22
RGBrgb(124, 143, 34)
HSLhsl(70, 62%, 35%)
HSVhsv(70, 76%, 56%)
CMYKcmyk(13.3%, 0%, 76.2%, 43.9%)
CIE-LABlab(56.13, -21.55, 51.88)
CIE-LCHlch(56.13, 56.18, 112.56°)
OKLaboklab(61.45% -0.0642 0.1147)
OKLCHoklch(61.45% 0.131 119.2)
XYZxyz(18.4238, 24.0456, 5.1838)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F22 #35228F
analogous
#8F6C22 #7C8F22 #458F22
triadic
#7C8F22 #227C8F #8F227C
tetradic
#7C8F22 #228F6C #35228F #8F2245
square
#7C8F22 #228F6C #35228F #8F2245
split-complementary
#7C8F22 #22458F #6C228F
monochromatic
#262C0A #515E16 #7C8F22 #A7C02E #C0D755

Accessibility & contrast

On white

3.61
#7C8F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#7C8F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8F22
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8F22#FFFFFF#000000##000000
##7C8F221.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998709
Deuteranopia (green-blind)
#96872C
Tritanopia (blue-blind)
#84877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7c8f22;
/* rgb */ color: rgb(124, 143, 34);
/* oklch */ color: oklch(61.4% 0.131 119.2);
Tailwind
colors: {
  custom: {
    50: '#a5af66',
    500: '#7c8f22',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f22;
$custom-light: #a5af66;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f22",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 70.459,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61448,
    "c": 0.1314,
    "h": 119.2
  },
  "luminance": 0.24046
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C8F22

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

Preview Lab → · Contrast checker → · Palette generator →

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