#787D2D#787D2D

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

Color values

HEX#787D2D
RGBrgb(120, 125, 45)
HSLhsl(64, 47%, 33%)
HSVhsv(64, 64%, 49%)
CMYKcmyk(4%, 0%, 64%, 51%)
CIE-LABlab(50.51, -13.20, 41.64)
CIE-LCHlch(50.51, 43.69, 107.59°)
OKLaboklab(56.88% -0.0396 0.095)
OKLCHoklch(56.88% 0.103 112.6)
XYZxyz(15.5534, 18.8501, 5.3012)
Luminance0.1885 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D2D #322D7D
analogous
#7D5A2D #787D2D #507D2D
triadic
#787D2D #2D787D #7D2D78
tetradic
#787D2D #2D7D5A #322D7D #7D2D50
square
#787D2D #2D7D5A #322D7D #7D2D50
split-complementary
#787D2D #2D507D #5A2D7D
monochromatic
#22230D #4D501D #787D2D #A3AA3D #BFC55F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D2D#FFFFFF#000000##000000
##787D2D1.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)
#867723
Deuteranopia (green-blind)
#867932
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d2d;
/* rgb */ color: rgb(120, 125, 45);
/* oklch */ color: oklch(56.9% 0.103 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a26a',
    500: '#787d2d',
    950: '#000000',
  },
}
SCSS
$custom: #787d2d;
$custom-light: #a1a26a;
$custom-dark: #000000;
JSON
{
  "hex": "#787d2d",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 45
  },
  "hsl": {
    "h": 63.75,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56882,
    "c": 0.10295,
    "h": 112.6
  },
  "luminance": 0.1885
}

Semantic roles & 50–950 ramp

primary
#787D2D
secondary
#5F5AAC
accent
#51D759
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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