#787D2C#787D2C

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

Color values

HEX#787D2C
RGBrgb(120, 125, 44)
HSLhsl(64, 48%, 33%)
HSVhsv(64, 65%, 49%)
CMYKcmyk(4%, 0%, 64.8%, 51%)
CIE-LABlab(50.50, -13.28, 42.09)
CIE-LCHlch(50.50, 44.14, 107.50°)
OKLaboklab(56.87% -0.0399 0.0958)
OKLCHoklch(56.87% 0.104 112.6)
XYZxyz(15.5344, 18.8425, 5.2010)
Luminance0.1884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D2C #312C7D
analogous
#7D592C #787D2C #4F7D2C
triadic
#787D2C #2C787D #7D2C78
tetradic
#787D2C #2C7D59 #312C7D #7D2C4F
square
#787D2C #2C7D59 #312C7D #7D2C4F
split-complementary
#787D2C #2C4F7D #592C7D
monochromatic
#21220C #4D501C #787D2C #A3AA3C #C0C65D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D2C#FFFFFF#000000##000000
##787D2C1.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)
#867722
Deuteranopia (green-blind)
#867931
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d2c;
/* rgb */ color: rgb(120, 125, 44);
/* oklch */ color: oklch(56.9% 0.104 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a269',
    500: '#787d2c',
    950: '#000000',
  },
}
SCSS
$custom: #787d2c;
$custom-light: #a1a269;
$custom-dark: #000000;
JSON
{
  "hex": "#787d2c",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 63.704,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56872,
    "c": 0.10381,
    "h": 112.6
  },
  "luminance": 0.18842
}

Semantic roles & 50–950 ramp

primary
#787D2C
secondary
#5E59AC
accent
#50D859
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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