#7D8020#7D8020

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

Color values

HEX#7D8020
RGBrgb(125, 128, 32)
HSLhsl(62, 60%, 31%)
HSVhsv(62, 75%, 50%)
CMYKcmyk(2.3%, 0%, 75%, 49.8%)
CIE-LABlab(51.73, -13.36, 48.44)
CIE-LCHlch(51.73, 50.25, 105.41°)
OKLaboklab(57.93% -0.0417 0.107)
OKLCHoklch(57.93% 0.115 111.3)
XYZxyz(16.4379, 19.9030, 4.3420)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8020 #232080
analogous
#805320 #7D8020 #4D8020
triadic
#7D8020 #207D80 #80207D
tetradic
#7D8020 #208053 #232080 #80204D
square
#7D8020 #208053 #232080 #80204D
split-complementary
#7D8020 #204D80 #532080
monochromatic
#1D1E08 #4D4F14 #7D8020 #ADB12C #CDD149

Accessibility & contrast

On white

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

On black

4.98
#7D8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8020
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8020#FFFFFF#000000##000000
##7D80201.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0D
Deuteranopia (green-blind)
#8B7C28
Tritanopia (blue-blind)
#86786E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7d8020;
/* rgb */ color: rgb(125, 128, 32);
/* oklch */ color: oklch(57.9% 0.115 111.3);
Tailwind
colors: {
  custom: {
    50: '#a6a463',
    500: '#7d8020',
    950: '#000000',
  },
}
SCSS
$custom: #7d8020;
$custom-light: #a6a463;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8020",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 61.875,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57927,
    "c": 0.11483,
    "h": 111.3
  },
  "luminance": 0.19903
}

Semantic roles & 50–950 ramp

primary
#7D8020
secondary
#4C49B3
accent
#45E34A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8020

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

Preview Lab → · Contrast checker → · Palette generator →

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