#787D29#787D29

#787D29 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.106 H 112.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#787D29
RGBrgb(120, 125, 41)
HSLhsl(64, 51%, 33%)
HSVhsv(64, 67%, 49%)
CMYKcmyk(4%, 0%, 67.2%, 51%)
CIE-LABlab(50.48, -13.48, 43.40)
CIE-LCHlch(50.48, 45.45, 107.26°)
OKLaboklab(56.84% -0.0408 0.0981)
OKLCHoklch(56.84% 0.106 112.6)
XYZxyz(15.4800, 18.8207, 4.9147)
Luminance0.1882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D29 #2E297D
analogous
#7D5829 #787D29 #4E7D29
triadic
#787D29 #29787D #7D2978
tetradic
#787D29 #297D58 #2E297D #7D294E
square
#787D29 #297D58 #2E297D #7D294E
split-complementary
#787D29 #294E7D #58297D
monochromatic
#20210B #4C4F1A #787D29 #A4AB38 #C2C858

Accessibility & contrast

On white

4.41
#787D29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#787D29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D29
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D29#FFFFFF#000000##000000
##787D291.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#86771E
Deuteranopia (green-blind)
#87792F
Tritanopia (blue-blind)
#80756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d29;
/* rgb */ color: rgb(120, 125, 41);
/* oklch */ color: oklch(56.8% 0.106 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a268',
    500: '#787d29',
    950: '#000000',
  },
}
SCSS
$custom: #787d29;
$custom-light: #a1a268;
$custom-dark: #000000;
JSON
{
  "hex": "#787d29",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 41
  },
  "hsl": {
    "h": 63.571,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56843,
    "c": 0.10628,
    "h": 112.6
  },
  "luminance": 0.1882
}

Semantic roles & 50–950 ramp

primary
#787D29
secondary
#5A54AE
accent
#4EDA56
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D29

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

Preview Lab → · Contrast checker → · Palette generator →

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