#7C8A16#7C8A16

#7C8A16 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.132 H 116.9°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7C8A16
RGBrgb(124, 138, 22)
HSLhsl(67, 73%, 31%)
HSVhsv(67, 84%, 54%)
CMYKcmyk(10.1%, 0%, 84.1%, 45.9%)
CIE-LABlab(54.57, -19.50, 54.20)
CIE-LCHlch(54.57, 57.61, 109.79°)
OKLaboklab(60.18% -0.0595 0.1174)
OKLCHoklch(60.18% 0.132 116.9)
XYZxyz(17.5460, 22.5202, 4.1814)
Luminance0.2252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A16 #24168A
analogous
#8A5E16 #7C8A16 #428A16
triadic
#7C8A16 #167C8A #8A167C
tetradic
#7C8A16 #168A5E #24168A #8A1642
square
#7C8A16 #168A5E #24168A #8A1642
split-complementary
#7C8A16 #16428A #5E168A
monochromatic
#1D2005 #4D550E #7C8A16 #ABBF1E #CCE03B

Accessibility & contrast

On white

3.82
#7C8A16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7C8A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A16
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A16#FFFFFF#000000##000000
##7C8A161.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938322
Tritanopia (blue-blind)
#848275
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a16;
/* rgb */ color: rgb(124, 138, 22);
/* oklch */ color: oklch(60.2% 0.132 116.9);
Tailwind
colors: {
  custom: {
    50: '#a5ac60',
    500: '#7c8a16',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a16;
$custom-light: #a5ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a16",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 67.241,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.60175,
    "c": 0.13164,
    "h": 116.9
  },
  "luminance": 0.2252
}

Semantic roles & 50–950 ramp

primary
#7C8A16
secondary
#4D3EBE
accent
#39EF4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8A16

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

Preview Lab → · Contrast checker → · Palette generator →

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