#7C8E1E#7C8E1E

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

Color values

HEX#7C8E1E
RGBrgb(124, 142, 30)
HSLhsl(70, 65%, 34%)
HSVhsv(70, 79%, 56%)
CMYKcmyk(12.7%, 0%, 78.9%, 44.3%)
CIE-LABlab(55.81, -21.24, 52.93)
CIE-LCHlch(55.81, 57.03, 111.86°)
OKLaboklab(61.18% -0.0636 0.1162)
OKLCHoklch(61.18% 0.132 118.7)
XYZxyz(18.2199, 23.7250, 4.8476)
Luminance0.2372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E1E #301E8E
analogous
#8E681E #7C8E1E #448E1E
triadic
#7C8E1E #1E7C8E #8E1E7C
tetradic
#7C8E1E #1E8E68 #301E8E #8E1E44
square
#7C8E1E #1E8E68 #301E8E #8E1E44
split-complementary
#7C8E1E #1E448E #681E8E
monochromatic
#242909 #505B13 #7C8E1E #A8C129 #C3D94D

Accessibility & contrast

On white

3.66
#7C8E1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8E1E#FFFFFF#000000##000000
##7C8E1E1.003.665.755.75
#FFFFFF3.661.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8e1e;
/* rgb */ color: rgb(124, 142, 30);
/* oklch */ color: oklch(61.2% 0.132 118.7);
Tailwind
colors: {
  custom: {
    50: '#a5af64',
    500: '#7c8e1e',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e1e;
$custom-light: #a5af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e1e",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 30
  },
  "hsl": {
    "h": 69.643,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61182,
    "c": 0.13245,
    "h": 118.7
  },
  "luminance": 0.23725
}

Semantic roles & 50–950 ramp

primary
#7C8E1E
secondary
#5E4CBC
accent
#40E85B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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