#7B8020#7B8020

#7B8020 is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.8% C 0.115 H 112.5°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7B8020
RGBrgb(123, 128, 32)
HSLhsl(63, 60%, 31%)
HSVhsv(63, 75%, 50%)
CMYKcmyk(3.9%, 0%, 75%, 49.8%)
CIE-LABlab(51.56, -14.27, 48.22)
CIE-LCHlch(51.56, 50.29, 106.48°)
OKLaboklab(57.75% -0.0441 0.1066)
OKLCHoklch(57.75% 0.115 112.5)
XYZxyz(16.1488, 19.7540, 4.3284)
Luminance0.1975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8020 #252080
analogous
#805520 #7B8020 #4B8020
triadic
#7B8020 #207B80 #80207B
tetradic
#7B8020 #208055 #252080 #80204B
square
#7B8020 #208055 #252080 #80204B
split-complementary
#7B8020 #204B80 #552080
monochromatic
#1D1E08 #4C4F14 #7B8020 #AAB12C #CAD149

Accessibility & contrast

On white

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

On black

4.95
#7B8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8020
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8020#FFFFFF#000000##000000
##7B80201.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8020;
/* rgb */ color: rgb(123, 128, 32);
/* oklch */ color: oklch(57.8% 0.115 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a463',
    500: '#7b8020',
    950: '#000000',
  },
}
SCSS
$custom: #7b8020;
$custom-light: #a4a463;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8020",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 63.125,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5775,
    "c": 0.11537,
    "h": 112.5
  },
  "luminance": 0.19754
}

Semantic roles & 50–950 ramp

primary
#7B8020
secondary
#4F49B3
accent
#45E34D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B8020

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

Preview Lab → · Contrast checker → · Palette generator →

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