#787B1D#787B1D

#787B1D is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.112 H 111.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#787B1D
RGBrgb(120, 123, 29)
HSLhsl(62, 62%, 30%)
HSVhsv(62, 76%, 48%)
CMYKcmyk(2.4%, 0%, 76.4%, 51.8%)
CIE-LABlab(49.80, -13.09, 47.56)
CIE-LCHlch(49.80, 49.33, 105.39°)
OKLaboklab(56.27% -0.041 0.1047)
OKLCHoklch(56.27% 0.112 111.4)
XYZxyz(15.0510, 18.2481, 3.8915)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B1D #201D7B
analogous
#7B4F1D #787B1D #497B1D
triadic
#787B1D #1D787B #7B1D78
tetradic
#787B1D #1D7B4F #201D7B #7B1D49
square
#787B1D #1D7B4F #201D7B #7B1D49
split-complementary
#787B1D #1D497B #4F1D7B
monochromatic
#181906 #484911 #787B1D #A8AD29 #CDD240

Accessibility & contrast

On white

4.52
#787B1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#787B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B1D
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B1D#FFFFFF#000000##000000
##787B1D1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#857509
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b1d;
/* rgb */ color: rgb(120, 123, 29);
/* oklch */ color: oklch(56.3% 0.112 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a161',
    500: '#787b1d',
    950: '#000000',
  },
}
SCSS
$custom: #787b1d;
$custom-light: #a2a161;
$custom-dark: #000000;
JSON
{
  "hex": "#787b1d",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 29
  },
  "hsl": {
    "h": 61.915,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56271,
    "c": 0.11248,
    "h": 111.4
  },
  "luminance": 0.18248
}

Semantic roles & 50–950 ramp

primary
#787B1D
secondary
#4845AF
accent
#43E548
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #787B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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