#7C8F1F#7C8F1F

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

Color values

HEX#7C8F1F
RGBrgb(124, 143, 31)
HSLhsl(70, 64%, 34%)
HSVhsv(70, 78%, 56%)
CMYKcmyk(13.3%, 0%, 78.3%, 43.9%)
CIE-LABlab(56.12, -21.70, 52.88)
CIE-LCHlch(56.12, 57.16, 112.31°)
OKLaboklab(61.43% -0.0648 0.1162)
OKLCHoklch(61.43% 0.133 119.2)
XYZxyz(18.3824, 24.0291, 4.9657)
Luminance0.2403 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F1F #321F8F
analogous
#8F6A1F #7C8F1F #448F1F
triadic
#7C8F1F #1F7C8F #8F1F7C
tetradic
#7C8F1F #1F8F6A #321F8F #8F1F44
square
#7C8F1F #1F8F6A #321F8F #8F1F44
split-complementary
#7C8F1F #1F448F #6A1F8F
monochromatic
#252A09 #505D14 #7C8F1F #A8C12A #C2D94F

Accessibility & contrast

On white

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

On black

5.81
#7C8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8F1F
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8F1F#FFFFFF#000000##000000
##7C8F1F1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8f1f;
/* rgb */ color: rgb(124, 143, 31);
/* oklch */ color: oklch(61.4% 0.133 119.2);
Tailwind
colors: {
  custom: {
    50: '#a5af65',
    500: '#7c8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f1f;
$custom-light: #a5af65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f1f",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 70.179,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61429,
    "c": 0.1331,
    "h": 119.2
  },
  "luminance": 0.24029
}

Semantic roles & 50–950 ramp

primary
#7C8F1F
secondary
#614EBC
accent
#40E75D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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