#7C8716#7C8716

#7C8716 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.128 H 115.5°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7C8716
RGBrgb(124, 135, 22)
HSLhsl(66, 72%, 31%)
HSVhsv(66, 84%, 53%)
CMYKcmyk(8.1%, 0%, 83.7%, 47.1%)
CIE-LABlab(53.68, -17.95, 53.43)
CIE-LCHlch(53.68, 56.36, 108.57°)
OKLaboklab(59.45% -0.0552 0.1158)
OKLCHoklch(59.45% 0.128 115.5)
XYZxyz(17.1215, 21.6713, 4.0399)
Luminance0.2167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8716 #211687
analogous
#875916 #7C8716 #438716
triadic
#7C8716 #167C87 #87167C
tetradic
#7C8716 #168759 #211687 #871643
square
#7C8716 #168759 #211687 #871643
split-complementary
#7C8716 #164387 #591687
monochromatic
#1B1E05 #4C520D #7C8716 #ACBC1F #CFDF39

Accessibility & contrast

On white

3.94
#7C8716 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#7C8716 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8716
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8716#FFFFFF#000000##000000
##7C87161.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#908122
Tritanopia (blue-blind)
#857F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c8716;
/* rgb */ color: rgb(124, 135, 22);
/* oklch */ color: oklch(59.5% 0.128 115.5);
Tailwind
colors: {
  custom: {
    50: '#a5a960',
    500: '#7c8716',
    950: '#000000',
  },
}
SCSS
$custom: #7c8716;
$custom-light: #a5a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8716",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 22
  },
  "hsl": {
    "h": 65.841,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59453,
    "c": 0.12826,
    "h": 115.5
  },
  "luminance": 0.21671
}

Semantic roles & 50–950 ramp

primary
#7C8716
secondary
#4A3EBB
accent
#39EF4B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8716

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

Preview Lab → · Contrast checker → · Palette generator →

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