#787B41#787B41

#787B41 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.7% C 0.080 H 111.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#787B41
RGBrgb(120, 123, 65)
HSLhsl(63, 31%, 37%)
HSVhsv(63, 47%, 48%)
CMYKcmyk(2.4%, 0%, 47.2%, 51.8%)
CIE-LABlab(50.15, -10.29, 31.17)
CIE-LCHlch(50.15, 32.82, 108.26°)
OKLaboklab(56.66% -0.0291 0.0747)
OKLCHoklch(56.66% 0.08 111.3)
XYZxyz(15.7831, 18.5409, 7.7473)
Luminance0.1854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B41 #44417B
analogous
#7B6141 #787B41 #5B7B41
triadic
#787B41 #41787B #7B4178
tetradic
#787B41 #417B61 #44417B #7B415B
square
#787B41 #417B61 #44417B #7B415B
split-complementary
#787B41 #415B7B #61417B
monochromatic
#2A2B17 #51532C #787B41 #9FA356 #B7BA7C

Accessibility & contrast

On white

4.46
#787B41 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#787B41 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B41
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B41#FFFFFF#000000##000000
##787B411.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#83763C
Deuteranopia (green-blind)
#837844
Tritanopia (blue-blind)
#7F756D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b41;
/* rgb */ color: rgb(120, 123, 65);
/* oklch */ color: oklch(56.7% 0.080 111.3);
Tailwind
colors: {
  custom: {
    50: '#a0a177',
    500: '#787b41',
    950: '#000000',
  },
}
SCSS
$custom: #787b41;
$custom-light: #a0a177;
$custom-dark: #000000;
JSON
{
  "hex": "#787b41",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 65
  },
  "hsl": {
    "h": 63.103,
    "s": 30.851,
    "l": 36.863
  },
  "oklch": {
    "l": 0.56663,
    "c": 0.08015,
    "h": 111.3
  },
  "luminance": 0.18541
}

Semantic roles & 50–950 ramp

primary
#787B41
secondary
#7673A5
accent
#61C766
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #787B41

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

Preview Lab → · Contrast checker → · Palette generator →

#787B41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva