#787D1B#787D1B

#787D1B 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#787D1B
RGBrgb(120, 125, 27)
HSLhsl(63, 64%, 30%)
HSVhsv(63, 78%, 49%)
CMYKcmyk(4%, 0%, 78.4%, 51%)
CIE-LABlab(50.38, -14.27, 48.81)
CIE-LCHlch(50.38, 50.85, 106.29°)
OKLaboklab(56.74% -0.0444 0.107)
OKLCHoklch(56.74% 0.116 112.6)
XYZxyz(15.2777, 18.7398, 3.8490)
Luminance0.1874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D1B #201B7D
analogous
#7D511B #787D1B #477D1B
triadic
#787D1B #1B787D #7D1B78
tetradic
#787D1B #1B7D51 #201B7D #7D1B47
square
#787D1B #1B7D51 #201B7D #7D1B47
split-complementary
#787D1B #1B477D #511B7D
monochromatic
#181905 #484B10 #787D1B #A8AF26 #CDD53D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #787d1b;
/* rgb */ color: rgb(120, 125, 27);
/* oklch */ color: oklch(56.7% 0.116 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a260',
    500: '#787d1b',
    950: '#000000',
  },
}
SCSS
$custom: #787d1b;
$custom-light: #a2a260;
$custom-dark: #000000;
JSON
{
  "hex": "#787d1b",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 63.061,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56736,
    "c": 0.11586,
    "h": 112.6
  },
  "luminance": 0.18739
}

Semantic roles & 50–950 ramp

primary
#787D1B
secondary
#4843B1
accent
#40E749
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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