#7C8F1D#7C8F1D

#7C8F1D is a mid, vivid yellow-green. Relative luminance 0.240; OKLCH L 61.4% C 0.134 H 119.1°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7C8F1D
RGBrgb(124, 143, 29)
HSLhsl(70, 66%, 34%)
HSVhsv(70, 80%, 56%)
CMYKcmyk(13.3%, 0%, 79.7%, 43.9%)
CIE-LABlab(56.11, -21.79, 53.52)
CIE-LCHlch(56.11, 57.78, 112.15°)
OKLaboklab(61.42% -0.0652 0.1172)
OKLCHoklch(61.42% 0.134 119.1)
XYZxyz(18.3568, 24.0188, 4.8312)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F1D #301D8F
analogous
#8F691D #7C8F1D #438F1D
triadic
#7C8F1D #1D7C8F #8F1D7C
tetradic
#7C8F1D #1D8F69 #301D8F #8F1D43
square
#7C8F1D #1D8F69 #301D8F #8F1D43
split-complementary
#7C8F1D #1D438F #691D8F
monochromatic
#242908 #505C13 #7C8F1D #A8C227 #C3DB4C

Accessibility & contrast

On white

3.62
#7C8F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#7C8F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8F1D
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8F1D#FFFFFF#000000##000000
##7C8F1D1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#84877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8f1d;
/* rgb */ color: rgb(124, 143, 29);
/* oklch */ color: oklch(61.4% 0.134 119.1);
Tailwind
colors: {
  custom: {
    50: '#a5af64',
    500: '#7c8f1d',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f1d;
$custom-light: #a5af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f1d",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 70,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61418,
    "c": 0.13416,
    "h": 119.1
  },
  "luminance": 0.24019
}

Semantic roles & 50–950 ramp

primary
#7C8F1D
secondary
#5E4BBD
accent
#3FE95B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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