#7C8C1F#7C8C1F

#7C8C1F 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#7C8C1F
RGBrgb(124, 140, 31)
HSLhsl(69, 64%, 34%)
HSVhsv(69, 78%, 55%)
CMYKcmyk(11.4%, 0%, 77.9%, 45.1%)
CIE-LABlab(55.22, -20.17, 52.05)
CIE-LCHlch(55.22, 55.82, 111.18°)
OKLaboklab(60.71% -0.0606 0.1145)
OKLCHoklch(60.71% 0.13 117.9)
XYZxyz(17.9380, 23.1404, 4.8176)
Luminance0.2314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8C1F #2F1F8C
analogous
#8C651F #7C8C1F #458C1F
triadic
#7C8C1F #1F7C8C #8C1F7C
tetradic
#7C8C1F #1F8C65 #2F1F8C #8C1F45
square
#7C8C1F #1F8C65 #2F1F8C #8C1F45
split-complementary
#7C8C1F #1F458C #651F8C
monochromatic
#232809 #505A14 #7C8C1F #A8BE2A #C3D84E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8C1F#FFFFFF#000000##000000
##7C8C1F1.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)
#968403
Deuteranopia (green-blind)
#948529
Tritanopia (blue-blind)
#848478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7c8c1f;
/* rgb */ color: rgb(124, 140, 31);
/* oklch */ color: oklch(60.7% 0.130 117.9);
Tailwind
colors: {
  custom: {
    50: '#a5ad64',
    500: '#7c8c1f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8c1f;
$custom-light: #a5ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8c1f",
  "rgb": {
    "r": 124,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 68.807,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60705,
    "c": 0.12954,
    "h": 117.9
  },
  "luminance": 0.2314
}

Semantic roles & 50–950 ramp

primary
#7C8C1F
secondary
#5C4CBB
accent
#41E759
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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