#7D8016#7D8016

#7D8016 is a mid, vivid yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.120 H 111.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7D8016
RGBrgb(125, 128, 22)
HSLhsl(62, 71%, 29%)
HSVhsv(62, 83%, 50%)
CMYKcmyk(2.3%, 0%, 82.8%, 49.8%)
CIE-LABlab(51.67, -13.78, 51.72)
CIE-LCHlch(51.67, 53.52, 104.93°)
OKLaboklab(57.87% -0.0438 0.112)
OKLCHoklch(57.87% 0.12 111.3)
XYZxyz(16.3220, 19.8567, 3.7318)
Luminance0.1986 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8016 #191680
analogous
#804E16 #7D8016 #488016
triadic
#7D8016 #167D80 #80167D
tetradic
#7D8016 #16804E #191680 #801648
square
#7D8016 #16804E #191680 #801648
split-complementary
#7D8016 #164880 #4E1680
monochromatic
#1A1A04 #4A4C0D #7D8016 #B0B41F #D7DC34

Accessibility & contrast

On white

4.22
#7D8016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#7D8016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8016
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8016#FFFFFF#000000##000000
##7D80161.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8016;
/* rgb */ color: rgb(125, 128, 22);
/* oklch */ color: oklch(57.9% 0.120 111.3);
Tailwind
colors: {
  custom: {
    50: '#a6a45f',
    500: '#7d8016',
    950: '#000000',
  },
}
SCSS
$custom: #7d8016;
$custom-light: #a6a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8016",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 61.698,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57868,
    "c": 0.12029,
    "h": 111.3
  },
  "luminance": 0.19856
}

Semantic roles & 50–950 ramp

primary
#7D8016
secondary
#403DB5
accent
#3AED3F
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8016

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

Preview Lab → · Contrast checker → · Palette generator →

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