#787B28#787B28

#787B28 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.105 H 111.3°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#787B28
RGBrgb(120, 123, 40)
HSLhsl(62, 51%, 32%)
HSVhsv(62, 67%, 48%)
CMYKcmyk(2.4%, 0%, 67.5%, 51.8%)
CIE-LABlab(49.87, -12.47, 43.22)
CIE-LCHlch(49.87, 44.98, 106.09°)
OKLaboklab(56.36% -0.0381 0.0976)
OKLCHoklch(56.36% 0.105 111.3)
XYZxyz(15.2121, 18.3126, 4.7404)
Luminance0.1831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B28 #2B287B
analogous
#7B5528 #787B28 #4F7B28
triadic
#787B28 #28787B #7B2878
tetradic
#787B28 #287B55 #2B287B #7B284F
square
#787B28 #287B55 #2B287B #7B284F
split-complementary
#787B28 #284F7B #55287B
monochromatic
#1E1F0A #4B4D19 #787B28 #A5A937 #C4C856

Accessibility & contrast

On white

4.50
#787B28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#787B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B28
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B28#FFFFFF#000000##000000
##787B281.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#85751D
Deuteranopia (green-blind)
#85782E
Tritanopia (blue-blind)
#80736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b28;
/* rgb */ color: rgb(120, 123, 40);
/* oklch */ color: oklch(56.4% 0.105 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a167',
    500: '#787b28',
    950: '#000000',
  },
}
SCSS
$custom: #787b28;
$custom-light: #a1a167;
$custom-dark: #000000;
JSON
{
  "hex": "#787b28",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 40
  },
  "hsl": {
    "h": 62.169,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56358,
    "c": 0.10474,
    "h": 111.3
  },
  "luminance": 0.18312
}

Semantic roles & 50–950 ramp

primary
#787B28
secondary
#5552AD
accent
#4DDA52
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B28

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

Preview Lab → · Contrast checker → · Palette generator →

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