#7C8816#7C8816

#7C8816 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.7% C 0.129 H 116.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7C8816
RGBrgb(124, 136, 22)
HSLhsl(66, 72%, 31%)
HSVhsv(66, 84%, 53%)
CMYKcmyk(8.8%, 0%, 83.8%, 46.7%)
CIE-LABlab(53.98, -18.47, 53.68)
CIE-LCHlch(53.98, 56.77, 108.98°)
OKLaboklab(59.69% -0.0567 0.1163)
OKLCHoklch(59.69% 0.129 116)
XYZxyz(17.2617, 21.9516, 4.0867)
Luminance0.2195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8816 #221688
analogous
#885B16 #7C8816 #438816
triadic
#7C8816 #167C88 #88167C
tetradic
#7C8816 #16885B #221688 #881643
square
#7C8816 #16885B #221688 #881643
split-complementary
#7C8816 #164388 #5B1688
monochromatic
#1C1F05 #4C530D #7C8816 #ACBD1F #CEDF39

Accessibility & contrast

On white

3.90
#7C8816 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#7C8816 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8816
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8816#FFFFFF#000000##000000
##7C88161.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#918222
Tritanopia (blue-blind)
#858074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7c8816;
/* rgb */ color: rgb(124, 136, 22);
/* oklch */ color: oklch(59.7% 0.129 116.0);
Tailwind
colors: {
  custom: {
    50: '#a5aa60',
    500: '#7c8816',
    950: '#000000',
  },
}
SCSS
$custom: #7c8816;
$custom-light: #a5aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8816",
  "rgb": {
    "r": 124,
    "g": 136,
    "b": 22
  },
  "hsl": {
    "h": 66.316,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59693,
    "c": 0.12939,
    "h": 116
  },
  "luminance": 0.21951
}

Semantic roles & 50–950 ramp

primary
#7C8816
secondary
#4B3EBC
accent
#39EF4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8816

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

Preview Lab → · Contrast checker → · Palette generator →

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