#787D2E#787D2E

#787D2E is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.102 H 112.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#787D2E
RGBrgb(120, 125, 46)
HSLhsl(64, 46%, 34%)
HSVhsv(64, 63%, 49%)
CMYKcmyk(4%, 0%, 63.2%, 51%)
CIE-LABlab(50.52, -13.13, 41.19)
CIE-LCHlch(50.52, 43.23, 107.68°)
OKLaboklab(56.89% -0.0393 0.0942)
OKLCHoklch(56.89% 0.102 112.6)
XYZxyz(15.5729, 18.8579, 5.4038)
Luminance0.1886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D2E #332E7D
analogous
#7D5A2E #787D2E #507D2E
triadic
#787D2E #2E787D #7D2E78
tetradic
#787D2E #2E7D5A #332E7D #7D2E50
square
#787D2E #2E7D5A #332E7D #7D2E50
split-complementary
#787D2E #2E507D #5A2E7D
monochromatic
#22240D #4D501E #787D2E #A3AA3E #BEC561

Accessibility & contrast

On white

4.40
#787D2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#787D2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D2E
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D2E#FFFFFF#000000##000000
##787D2E1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#867725
Deuteranopia (green-blind)
#867933
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d2e;
/* rgb */ color: rgb(120, 125, 46);
/* oklch */ color: oklch(56.9% 0.102 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a26b',
    500: '#787d2e',
    950: '#000000',
  },
}
SCSS
$custom: #787d2e;
$custom-light: #a1a26b;
$custom-dark: #000000;
JSON
{
  "hex": "#787d2e",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 63.797,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56892,
    "c": 0.10208,
    "h": 112.6
  },
  "luminance": 0.18858
}

Semantic roles & 50–950 ramp

primary
#787D2E
secondary
#605BAB
accent
#52D65A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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