#7C8E28#7C8E28

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

Color values

HEX#7C8E28
RGBrgb(124, 142, 40)
HSLhsl(71, 56%, 36%)
HSVhsv(71, 72%, 56%)
CMYKcmyk(12.7%, 0%, 71.8%, 44.3%)
CIE-LABlab(55.87, -20.71, 49.41)
CIE-LCHlch(55.87, 53.57, 112.74°)
OKLaboklab(61.25% -0.0613 0.1105)
OKLCHoklch(61.25% 0.126 119)
XYZxyz(18.3685, 23.7844, 5.6303)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E28 #3A288E
analogous
#8E6D28 #7C8E28 #498E28
triadic
#7C8E28 #287C8E #8E287C
tetradic
#7C8E28 #288E6D #3A288E #8E2849
square
#7C8E28 #288E6D #3A288E #8E2849
split-complementary
#7C8E28 #28498E #6D288E
monochromatic
#292F0D #525E1B #7C8E28 #A6BE35 #BDD25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8E28#FFFFFF#000000##000000
##7C8E281.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)
#978617
Deuteranopia (green-blind)
#958630
Tritanopia (blue-blind)
#83867A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e28;
/* rgb */ color: rgb(124, 142, 40);
/* oklch */ color: oklch(61.2% 0.126 119.0);
Tailwind
colors: {
  custom: {
    50: '#a5af69',
    500: '#7c8e28',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e28;
$custom-light: #a5af69;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e28",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 70.588,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61249,
    "c": 0.12636,
    "h": 119
  },
  "luminance": 0.23784
}

Semantic roles & 50–950 ramp

primary
#7C8E28
secondary
#6B5BB7
accent
#48DF63
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8E28

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

Preview Lab → · Contrast checker → · Palette generator →

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