#7C8C1E#7C8C1E

#7C8C1E is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.7% C 0.130 H 117.9°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7C8C1E
RGBrgb(124, 140, 30)
HSLhsl(69, 65%, 33%)
HSVhsv(69, 79%, 55%)
CMYKcmyk(11.4%, 0%, 78.6%, 45.1%)
CIE-LABlab(55.21, -20.21, 52.38)
CIE-LCHlch(55.21, 56.14, 111.10°)
OKLaboklab(60.7% -0.0608 0.115)
OKLCHoklch(60.7% 0.13 117.9)
XYZxyz(17.9250, 23.1352, 4.7493)
Luminance0.2314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8C1E #2E1E8C
analogous
#8C651E #7C8C1E #458C1E
triadic
#7C8C1E #1E7C8C #8C1E7C
tetradic
#7C8C1E #1E8C65 #2E1E8C #8C1E45
square
#7C8C1E #1E8C65 #2E1E8C #8C1E45
split-complementary
#7C8C1E #1E458C #651E8C
monochromatic
#232708 #4F5A13 #7C8C1E #A9BE29 #C4D94C

Accessibility & contrast

On white

3.73
#7C8C1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#7C8C1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8C1E
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8C1E#FFFFFF#000000##000000
##7C8C1E1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968401
Deuteranopia (green-blind)
#948528
Tritanopia (blue-blind)
#848478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7c8c1e;
/* rgb */ color: rgb(124, 140, 30);
/* oklch */ color: oklch(60.7% 0.130 117.9);
Tailwind
colors: {
  custom: {
    50: '#a5ad64',
    500: '#7c8c1e',
    950: '#000000',
  },
}
SCSS
$custom: #7c8c1e;
$custom-light: #a5ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8c1e",
  "rgb": {
    "r": 124,
    "g": 140,
    "b": 30
  },
  "hsl": {
    "h": 68.727,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60699,
    "c": 0.13008,
    "h": 117.9
  },
  "luminance": 0.23135
}

Semantic roles & 50–950 ramp

primary
#7C8C1E
secondary
#5B4BBB
accent
#40E858
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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