#7C8D28#7C8D28

#7C8D28 is a mid, vivid yellow-green. Relative luminance 0.235; OKLCH L 61.0% C 0.125 H 118.6°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7C8D28
RGBrgb(124, 141, 40)
HSLhsl(70, 56%, 35%)
HSVhsv(70, 72%, 55%)
CMYKcmyk(12.1%, 0%, 71.6%, 44.7%)
CIE-LABlab(55.57, -20.20, 49.11)
CIE-LCHlch(55.57, 53.10, 112.36°)
OKLaboklab(61.01% -0.0599 0.1099)
OKLCHoklch(61.01% 0.125 118.6)
XYZxyz(18.2204, 23.4882, 5.5809)
Luminance0.2349 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D28 #39288D
analogous
#8D6B28 #7C8D28 #498D28
triadic
#7C8D28 #287C8D #8D287C
tetradic
#7C8D28 #288D6B #39288D #8D2849
square
#7C8D28 #288D6B #39288D #8D2849
split-complementary
#7C8D28 #28498D #6B288D
monochromatic
#282E0D #525D1A #7C8D28 #A6BD36 #BED15E

Accessibility & contrast

On white

3.69
#7C8D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#7C8D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D28
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D28#FFFFFF#000000##000000
##7C8D281.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968517
Deuteranopia (green-blind)
#958630
Tritanopia (blue-blind)
#838579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d28;
/* rgb */ color: rgb(124, 141, 40);
/* oklch */ color: oklch(61.0% 0.125 118.6);
Tailwind
colors: {
  custom: {
    50: '#a5ae69',
    500: '#7c8d28',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d28;
$custom-light: #a5ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d28",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 70.099,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61008,
    "c": 0.12512,
    "h": 118.6
  },
  "luminance": 0.23488
}

Semantic roles & 50–950 ramp

primary
#7C8D28
secondary
#6A5AB7
accent
#49DF62
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8D28

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

Preview Lab → · Contrast checker → · Palette generator →

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