#7B804F#7B804F

#7B804F is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.3% C 0.069 H 113.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7B804F
RGBrgb(123, 128, 79)
HSLhsl(66, 24%, 41%)
HSVhsv(66, 38%, 50%)
CMYKcmyk(3.9%, 0%, 38.3%, 49.8%)
CIE-LABlab(52.08, -10.09, 25.99)
CIE-LCHlch(52.08, 27.88, 111.21°)
OKLaboklab(58.33% -0.0275 0.0638)
OKLCHoklch(58.33% 0.069 113.3)
XYZxyz(17.2989, 20.2140, 10.3860)
Luminance0.2021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B804F #544F80
analogous
#806C4F #7B804F #62804F
triadic
#7B804F #4F7B80 #804F7B
tetradic
#7B804F #4F806C #544F80 #804F62
square
#7B804F #4F806C #544F80 #804F62
split-complementary
#7B804F #4F6280 #6C4F80
monochromatic
#323420 #575A38 #7B804F #9DA369 #B6BA8F

Accessibility & contrast

On white

4.16
#7B804F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#7B804F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B804F
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B804F#FFFFFF#000000##000000
##7B804F1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877C4B
Deuteranopia (green-blind)
#877D51
Tritanopia (blue-blind)
#817B74
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7b804f;
/* rgb */ color: rgb(123, 128, 79);
/* oklch */ color: oklch(58.3% 0.069 113.3);
Tailwind
colors: {
  custom: {
    50: '#a2a481',
    500: '#7b804f',
    950: '#000000',
  },
}
SCSS
$custom: #7b804f;
$custom-light: #a2a481;
$custom-dark: #000000;
JSON
{
  "hex": "#7b804f",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 79
  },
  "hsl": {
    "h": 66.122,
    "s": 23.671,
    "l": 40.588
  },
  "oklch": {
    "l": 0.58334,
    "c": 0.06948,
    "h": 113.3
  },
  "luminance": 0.20214
}

Semantic roles & 50–950 ramp

primary
#7B804F
secondary
#8784A7
accent
#68C071
background
#FAFAF7
surface
#F3F4EE
border
#CDCEC9
text
#0F0F0A
muted
#7F7F7C

Preview Lab

Preview with #7B804F

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

Preview Lab → · Contrast checker → · Palette generator →

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