#7C8F28#7C8F28

#7C8F28 is a mid, vivid yellow-green. Relative luminance 0.241; OKLCH L 61.5% C 0.128 H 119.4°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7C8F28
RGBrgb(124, 143, 40)
HSLhsl(71, 56%, 36%)
HSVhsv(71, 72%, 56%)
CMYKcmyk(13.3%, 0%, 72%, 43.9%)
CIE-LABlab(56.17, -21.22, 49.70)
CIE-LCHlch(56.17, 54.04, 113.12°)
OKLaboklab(61.49% -0.0627 0.1111)
OKLCHoklch(61.49% 0.128 119.4)
XYZxyz(18.5180, 24.0833, 5.6801)
Luminance0.2408 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F28 #3B288F
analogous
#8F6E28 #7C8F28 #488F28
triadic
#7C8F28 #287C8F #8F287C
tetradic
#7C8F28 #288F6E #3B288F #8F2848
square
#7C8F28 #288F6E #3B288F #8F2848
split-complementary
#7C8F28 #28488F #6E288F
monochromatic
#292F0D #535F1B #7C8F28 #A5BF35 #BDD25F

Accessibility & contrast

On white

3.61
#7C8F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#7C8F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8F28
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8F28#FFFFFF#000000##000000
##7C8F281.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#988717
Deuteranopia (green-blind)
#968730
Tritanopia (blue-blind)
#83877B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7c8f28;
/* rgb */ color: rgb(124, 143, 40);
/* oklch */ color: oklch(61.5% 0.128 119.4);
Tailwind
colors: {
  custom: {
    50: '#a5af69',
    500: '#7c8f28',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f28;
$custom-light: #a5af69;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f28",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 71.068,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.6149,
    "c": 0.1276,
    "h": 119.4
  },
  "luminance": 0.24083
}

Semantic roles & 50–950 ramp

primary
#7C8F28
secondary
#6C5BB8
accent
#48E064
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8F28

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

Preview Lab → · Contrast checker → · Palette generator →

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