#7C8E2F#7C8E2F

#7C8E2F is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.3% C 0.121 H 119.3°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7C8E2F
RGBrgb(124, 142, 47)
HSLhsl(71, 50%, 37%)
HSVhsv(71, 67%, 56%)
CMYKcmyk(12.7%, 0%, 66.9%, 44.3%)
CIE-LABlab(55.92, -20.26, 46.59)
CIE-LCHlch(55.92, 50.80, 113.50°)
OKLaboklab(61.31% -0.0594 0.1057)
OKLCHoklch(61.31% 0.121 119.3)
XYZxyz(18.4986, 23.8364, 6.3151)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E2F #412F8E
analogous
#8E712F #7C8E2F #4D8E2F
triadic
#7C8E2F #2F7C8E #8E2F7C
tetradic
#7C8E2F #2F8E71 #412F8E #8E2F4D
square
#7C8E2F #2F8E71 #412F8E #8E2F4D
split-complementary
#7C8E2F #2F4D8E #712F8E
monochromatic
#2C3211 #546020 #7C8E2F #A4BC3E #BBCE6A

Accessibility & contrast

On white

3.64
#7C8E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#7C8E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E2F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E2F#FFFFFF#000000##000000
##7C8E2F1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978622
Deuteranopia (green-blind)
#958636
Tritanopia (blue-blind)
#83867B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e2f;
/* rgb */ color: rgb(124, 142, 47);
/* oklch */ color: oklch(61.3% 0.121 119.3);
Tailwind
colors: {
  custom: {
    50: '#a4af6d',
    500: '#7c8e2f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e2f;
$custom-light: #a4af6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e2f",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 71.368,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61308,
    "c": 0.12121,
    "h": 119.3
  },
  "luminance": 0.23836
}

Semantic roles & 50–950 ramp

primary
#7C8E2F
secondary
#7364B5
accent
#4EDA69
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7C8E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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