#787B1B#787B1B

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

Color values

HEX#787B1B
RGBrgb(120, 123, 27)
HSLhsl(62, 64%, 29%)
HSVhsv(62, 78%, 48%)
CMYKcmyk(2.4%, 0%, 78%, 51.8%)
CIE-LABlab(49.78, -13.19, 48.26)
CIE-LCHlch(49.78, 50.03, 105.28°)
OKLaboklab(56.26% -0.0414 0.1058)
OKLCHoklch(56.26% 0.114 111.4)
XYZxyz(15.0270, 18.2385, 3.7655)
Luminance0.1824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B1B #1E1B7B
analogous
#7B4E1B #787B1B #487B1B
triadic
#787B1B #1B787B #7B1B78
tetradic
#787B1B #1B7B4E #1E1B7B #7B1B48
square
#787B1B #1B7B4E #1E1B7B #7B1B48
split-complementary
#787B1B #1B487B #4E1B7B
monochromatic
#181906 #474910 #787B1B #A9AD26 #CFD43C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B1B#FFFFFF#000000##000000
##787B1B1.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)
#857504
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b1b;
/* rgb */ color: rgb(120, 123, 27);
/* oklch */ color: oklch(56.3% 0.114 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a160',
    500: '#787b1b',
    950: '#000000',
  },
}
SCSS
$custom: #787b1b;
$custom-light: #a2a160;
$custom-dark: #000000;
JSON
{
  "hex": "#787b1b",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 27
  },
  "hsl": {
    "h": 61.875,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56258,
    "c": 0.11365,
    "h": 111.4
  },
  "luminance": 0.18238
}

Semantic roles & 50–950 ramp

primary
#787B1B
secondary
#4643AF
accent
#41E746
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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