#7A8020#7A8020

#7A8020 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.116 H 113.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7A8020
RGBrgb(122, 128, 32)
HSLhsl(64, 60%, 31%)
HSVhsv(64, 75%, 50%)
CMYKcmyk(4.7%, 0%, 75%, 49.8%)
CIE-LABlab(51.47, -14.72, 48.11)
CIE-LCHlch(51.47, 50.31, 107.01°)
OKLaboklab(57.66% -0.0453 0.1064)
OKLCHoklch(57.66% 0.116 113.1)
XYZxyz(16.0064, 19.6806, 4.3218)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8020 #262080
analogous
#805620 #7A8020 #4A8020
triadic
#7A8020 #207A80 #80207A
tetradic
#7A8020 #208056 #262080 #80204A
square
#7A8020 #208056 #262080 #80204A
split-complementary
#7A8020 #204A80 #562080
monochromatic
#1D1E08 #4B4F14 #7A8020 #A9B12C #C9D149

Accessibility & contrast

On white

4.25
#7A8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7A8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8020
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8020#FFFFFF#000000##000000
##7A80201.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a8020;
/* rgb */ color: rgb(122, 128, 32);
/* oklch */ color: oklch(57.7% 0.116 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a463',
    500: '#7a8020',
    950: '#000000',
  },
}
SCSS
$custom: #7a8020;
$custom-light: #a3a463;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8020",
  "rgb": {
    "r": 122,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 63.75,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57662,
    "c": 0.11566,
    "h": 113.1
  },
  "luminance": 0.1968
}

Semantic roles & 50–950 ramp

primary
#7A8020
secondary
#5049B3
accent
#45E34F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #7A8020

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

Preview Lab → · Contrast checker → · Palette generator →

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