#7C8B16#7C8B16

#7C8B16 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.133 H 117.3°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7C8B16
RGBrgb(124, 139, 22)
HSLhsl(68, 73%, 32%)
HSVhsv(68, 84%, 55%)
CMYKcmyk(10.8%, 0%, 84.2%, 45.5%)
CIE-LABlab(54.87, -20.02, 54.46)
CIE-LCHlch(54.87, 58.03, 110.18°)
OKLaboklab(60.42% -0.0609 0.118)
OKLCHoklch(60.42% 0.133 117.3)
XYZxyz(17.6901, 22.8085, 4.2295)
Luminance0.2281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B16 #25168B
analogous
#8B6016 #7C8B16 #428B16
triadic
#7C8B16 #167C8B #8B167C
tetradic
#7C8B16 #168B60 #25168B #8B1642
square
#7C8B16 #168B60 #25168B #8B1642
split-complementary
#7C8B16 #16428B #60168B
monochromatic
#1E2105 #4D560E #7C8B16 #ABC01E #CBE03B

Accessibility & contrast

On white

3.78
#7C8B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#7C8B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B16
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B16#FFFFFF#000000##000000
##7C8B161.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948423
Tritanopia (blue-blind)
#848376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b16;
/* rgb */ color: rgb(124, 139, 22);
/* oklch */ color: oklch(60.4% 0.133 117.3);
Tailwind
colors: {
  custom: {
    50: '#a5ac60',
    500: '#7c8b16',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b16;
$custom-light: #a5ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b16",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 67.692,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60416,
    "c": 0.13279,
    "h": 117.3
  },
  "luminance": 0.22808
}

Semantic roles & 50–950 ramp

primary
#7C8B16
secondary
#4F3EBF
accent
#38EF50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8B16

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

Preview Lab → · Contrast checker → · Palette generator →

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