#787D1D#787D1D

#787D1D is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.115 H 112.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#787D1D
RGBrgb(120, 125, 29)
HSLhsl(63, 62%, 30%)
HSVhsv(63, 77%, 49%)
CMYKcmyk(4%, 0%, 76.8%, 51%)
CIE-LABlab(50.39, -14.18, 48.12)
CIE-LCHlch(50.39, 50.17, 106.41°)
OKLaboklab(56.75% -0.044 0.1059)
OKLCHoklch(56.75% 0.115 112.6)
XYZxyz(15.3016, 18.7494, 3.9751)
Luminance0.1875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D1D #221D7D
analogous
#7D521D #787D1D #487D1D
triadic
#787D1D #1D787D #7D1D78
tetradic
#787D1D #1D7D52 #221D7D #7D1D48
square
#787D1D #1D7D52 #221D7D #7D1D48
split-complementary
#787D1D #1D487D #521D7D
monochromatic
#191A06 #484B11 #787D1D #A8AF29 #CBD341

Accessibility & contrast

On white

4.42
#787D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#787D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D1D
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D1D#FFFFFF#000000##000000
##787D1D1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877708
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d1d;
/* rgb */ color: rgb(120, 125, 29);
/* oklch */ color: oklch(56.7% 0.115 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a261',
    500: '#787d1d',
    950: '#000000',
  },
}
SCSS
$custom: #787d1d;
$custom-light: #a2a261;
$custom-dark: #000000;
JSON
{
  "hex": "#787d1d",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 63.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56749,
    "c": 0.1147,
    "h": 112.6
  },
  "luminance": 0.18749
}

Semantic roles & 50–950 ramp

primary
#787D1D
secondary
#4B45B1
accent
#42E54B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #787D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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