#787D1A#787D1A

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

Color values

HEX#787D1A
RGBrgb(120, 125, 26)
HSLhsl(63, 66%, 30%)
HSVhsv(63, 79%, 49%)
CMYKcmyk(4%, 0%, 79.2%, 51%)
CIE-LABlab(50.38, -14.31, 49.14)
CIE-LCHlch(50.38, 51.19, 106.24°)
OKLaboklab(56.73% -0.0446 0.1075)
OKLCHoklch(56.73% 0.116 112.6)
XYZxyz(15.2663, 18.7352, 3.7892)
Luminance0.1873 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D1A #1F1A7D
analogous
#7D501A #787D1A #477D1A
triadic
#787D1A #1A787D #7D1A78
tetradic
#787D1A #1A7D50 #1F1A7D #7D1A47
square
#787D1A #1A7D50 #1F1A7D #7D1A47
split-complementary
#787D1A #1A477D #501A7D
monochromatic
#181905 #474A0F #787D1A #A9B025 #CED63B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D1A#FFFFFF#000000##000000
##787D1A1.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)
#877701
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d1a;
/* rgb */ color: rgb(120, 125, 26);
/* oklch */ color: oklch(56.7% 0.116 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a260',
    500: '#787d1a',
    950: '#000000',
  },
}
SCSS
$custom: #787d1a;
$custom-light: #a2a260;
$custom-dark: #000000;
JSON
{
  "hex": "#787d1a",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 63.03,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5673,
    "c": 0.11642,
    "h": 112.6
  },
  "luminance": 0.18735
}

Semantic roles & 50–950 ramp

primary
#787D1A
secondary
#4742B1
accent
#3FE948
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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