#7C8E2B#7C8E2B

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

Color values

HEX#7C8E2B
RGBrgb(124, 142, 43)
HSLhsl(71, 54%, 36%)
HSVhsv(71, 70%, 56%)
CMYKcmyk(12.7%, 0%, 69.7%, 44.3%)
CIE-LABlab(55.89, -20.53, 48.23)
CIE-LCHlch(55.89, 52.42, 113.05°)
OKLaboklab(61.27% -0.0605 0.1085)
OKLCHoklch(61.27% 0.124 119.1)
XYZxyz(18.4216, 23.8056, 5.9095)
Luminance0.2381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E2B #3D2B8E
analogous
#8E6F2B #7C8E2B #4B8E2B
triadic
#7C8E2B #2B7C8E #8E2B7C
tetradic
#7C8E2B #2B8E6F #3D2B8E #8E2B4B
square
#7C8E2B #2B8E6F #3D2B8E #8E2B4B
split-complementary
#7C8E2B #2B4B8E #6F2B8E
monochromatic
#2A300F #535F1D #7C8E2B #A5BD39 #BCD063

Accessibility & contrast

On white

3.65
#7C8E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#7C8E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E2B
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E2B#FFFFFF#000000##000000
##7C8E2B1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861C
Deuteranopia (green-blind)
#958633
Tritanopia (blue-blind)
#83867A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e2b;
/* rgb */ color: rgb(124, 142, 43);
/* oklch */ color: oklch(61.3% 0.124 119.1);
Tailwind
colors: {
  custom: {
    50: '#a5af6a',
    500: '#7c8e2b',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e2b;
$custom-light: #a5af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e2b",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 70.909,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61273,
    "c": 0.12424,
    "h": 119.1
  },
  "luminance": 0.23806
}

Semantic roles & 50–950 ramp

primary
#7C8E2B
secondary
#6F5FB6
accent
#4BDD65
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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