#7C8016#7C8016

#7C8016 is a mid, vivid yellow. Relative luminance 0.198; OKLCH L 57.8% C 0.121 H 111.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7C8016
RGBrgb(124, 128, 22)
HSLhsl(62, 71%, 29%)
HSVhsv(62, 83%, 50%)
CMYKcmyk(3.1%, 0%, 82.8%, 49.8%)
CIE-LABlab(51.59, -14.24, 51.61)
CIE-LCHlch(51.59, 53.54, 105.43°)
OKLaboklab(57.78% -0.045 0.1119)
OKLCHoklch(57.78% 0.121 111.9)
XYZxyz(16.1767, 19.7818, 3.7250)
Luminance0.1978 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8016 #1A1680
analogous
#804F16 #7C8016 #478016
triadic
#7C8016 #167C80 #80167C
tetradic
#7C8016 #16804F #1A1680 #801647
square
#7C8016 #16804F #1A1680 #801647
split-complementary
#7C8016 #164780 #4F1680
monochromatic
#191A04 #494C0D #7C8016 #AFB41F #D6DC34

Accessibility & contrast

On white

4.24
#7C8016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7C8016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8016
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8016#FFFFFF#000000##000000
##7C80161.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8B7C20
Tritanopia (blue-blind)
#85786D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7c8016;
/* rgb */ color: rgb(124, 128, 22);
/* oklch */ color: oklch(57.8% 0.121 111.9);
Tailwind
colors: {
  custom: {
    50: '#a5a45f',
    500: '#7c8016',
    950: '#000000',
  },
}
SCSS
$custom: #7c8016;
$custom-light: #a5a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8016",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 62.264,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57779,
    "c": 0.12057,
    "h": 111.9
  },
  "luminance": 0.19781
}

Semantic roles & 50–950 ramp

primary
#7C8016
secondary
#423DB5
accent
#3AED41
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8016

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

Preview Lab → · Contrast checker → · Palette generator →

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