#7C8C1A#7C8C1A

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

Color values

HEX#7C8C1A
RGBrgb(124, 140, 26)
HSLhsl(68, 69%, 33%)
HSVhsv(68, 81%, 55%)
CMYKcmyk(11.4%, 0%, 81.4%, 45.1%)
CIE-LABlab(55.19, -20.38, 53.61)
CIE-LCHlch(55.19, 57.35, 110.82°)
OKLaboklab(60.68% -0.0616 0.1169)
OKLCHoklch(60.68% 0.132 117.8)
XYZxyz(17.8772, 23.1160, 4.4972)
Luminance0.2312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8C1A #2A1A8C
analogous
#8C631A #7C8C1A #438C1A
triadic
#7C8C1A #1A7C8C #8C1A7C
tetradic
#7C8C1A #1A8C63 #2A1A8C #8C1A43
square
#7C8C1A #1A8C63 #2A1A8C #8C1A43
split-complementary
#7C8C1A #1A438C #631A8C
monochromatic
#212507 #4E5810 #7C8C1A #AAC024 #C7DC44

Accessibility & contrast

On white

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

On black

5.62
#7C8C1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8C1A
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8C1A#FFFFFF#000000##000000
##7C8C1A1.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#948525
Tritanopia (blue-blind)
#848477
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7c8c1a;
/* rgb */ color: rgb(124, 140, 26);
/* oklch */ color: oklch(60.7% 0.132 117.8);
Tailwind
colors: {
  custom: {
    50: '#a5ad62',
    500: '#7c8c1a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8c1a;
$custom-light: #a5ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8c1a",
  "rgb": {
    "r": 124,
    "g": 140,
    "b": 26
  },
  "hsl": {
    "h": 68.421,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60677,
    "c": 0.13213,
    "h": 117.8
  },
  "luminance": 0.23116
}

Semantic roles & 50–950 ramp

primary
#7C8C1A
secondary
#5544BE
accent
#3CEC55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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