#7D8022#7D8022

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

Color values

HEX#7D8022
RGBrgb(125, 128, 34)
HSLhsl(62, 58%, 32%)
HSVhsv(62, 73%, 50%)
CMYKcmyk(2.3%, 0%, 73.4%, 49.8%)
CIE-LABlab(51.74, -13.25, 47.70)
CIE-LCHlch(51.74, 49.51, 105.53°)
OKLaboklab(57.94% -0.0412 0.1058)
OKLCHoklch(57.94% 0.114 111.3)
XYZxyz(16.4659, 19.9142, 4.4895)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8022 #252280
analogous
#805422 #7D8022 #4E8022
triadic
#7D8022 #227D80 #80227D
tetradic
#7D8022 #228054 #252280 #80224E
square
#7D8022 #228054 #252280 #80224E
split-complementary
#7D8022 #224E80 #542280
monochromatic
#1F1F08 #4E5015 #7D8022 #ACB02F #CBD04D

Accessibility & contrast

On white

4.21
#7D8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8022#FFFFFF#000000##000000
##7D80221.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8022;
/* rgb */ color: rgb(125, 128, 34);
/* oklch */ color: oklch(57.9% 0.114 111.3);
Tailwind
colors: {
  custom: {
    50: '#a6a464',
    500: '#7d8022',
    950: '#000000',
  },
}
SCSS
$custom: #7d8022;
$custom-light: #a6a464;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8022",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 61.915,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57941,
    "c": 0.11354,
    "h": 111.3
  },
  "luminance": 0.19914
}

Semantic roles & 50–950 ramp

primary
#7D8022
secondary
#4F4BB2
accent
#47E14B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8022

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

Preview Lab → · Contrast checker → · Palette generator →

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