#7C8E1F#7C8E1F

#7C8E1F is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.132 H 118.8°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7C8E1F
RGBrgb(124, 142, 31)
HSLhsl(70, 64%, 34%)
HSVhsv(70, 78%, 56%)
CMYKcmyk(12.7%, 0%, 78.2%, 44.3%)
CIE-LABlab(55.82, -21.19, 52.61)
CIE-LCHlch(55.82, 56.71, 111.94°)
OKLaboklab(61.19% -0.0635 0.1156)
OKLCHoklch(61.19% 0.132 118.8)
XYZxyz(18.2329, 23.7302, 4.9159)
Luminance0.2373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E1F #311F8E
analogous
#8E691F #7C8E1F #458E1F
triadic
#7C8E1F #1F7C8E #8E1F7C
tetradic
#7C8E1F #1F8E69 #311F8E #8E1F45
square
#7C8E1F #1F8E69 #311F8E #8E1F45
split-complementary
#7C8E1F #1F458E #691F8E
monochromatic
#242A09 #505C14 #7C8E1F #A8C02A #C2D94F

Accessibility & contrast

On white

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

On black

5.75
#7C8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E1F
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E1F#FFFFFF#000000##000000
##7C8E1F1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#968629
Tritanopia (blue-blind)
#848679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e1f;
/* rgb */ color: rgb(124, 142, 31);
/* oklch */ color: oklch(61.2% 0.132 118.8);
Tailwind
colors: {
  custom: {
    50: '#a5af64',
    500: '#7c8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e1f;
$custom-light: #a5af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e1f",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 69.73,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61187,
    "c": 0.1319,
    "h": 118.8
  },
  "luminance": 0.2373
}

Semantic roles & 50–950 ramp

primary
#7C8E1F
secondary
#5F4DBB
accent
#41E75C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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