#7C8F20#7C8F20

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

Color values

HEX#7C8F20
RGBrgb(124, 143, 32)
HSLhsl(70, 63%, 34%)
HSVhsv(70, 78%, 56%)
CMYKcmyk(13.3%, 0%, 77.6%, 43.9%)
CIE-LABlab(56.12, -21.65, 52.56)
CIE-LCHlch(56.12, 56.84, 112.39°)
OKLaboklab(61.43% -0.0646 0.1157)
OKLCHoklch(61.43% 0.133 119.2)
XYZxyz(18.3957, 24.0344, 5.0362)
Luminance0.2403 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F20 #33208F
analogous
#8F6B20 #7C8F20 #458F20
triadic
#7C8F20 #207C8F #8F207C
tetradic
#7C8F20 #208F6B #33208F #8F2045
square
#7C8F20 #208F6B #33208F #8F2045
split-complementary
#7C8F20 #20458F #6B208F
monochromatic
#252B0A #515D15 #7C8F20 #A7C12B #C1D851

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8F20#FFFFFF#000000##000000
##7C8F201.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8f20;
/* rgb */ color: rgb(124, 143, 32);
/* oklch */ color: oklch(61.4% 0.133 119.2);
Tailwind
colors: {
  custom: {
    50: '#a5af65',
    500: '#7c8f20',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f20;
$custom-light: #a5af65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f20",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 70.27,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61435,
    "c": 0.13254,
    "h": 119.2
  },
  "luminance": 0.24034
}

Semantic roles & 50–950 ramp

primary
#7C8F20
secondary
#624FBB
accent
#41E65E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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