#787B26#787B26

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

Color values

HEX#787B26
RGBrgb(120, 123, 38)
HSLhsl(62, 53%, 32%)
HSVhsv(62, 69%, 48%)
CMYKcmyk(2.4%, 0%, 69.1%, 51.8%)
CIE-LABlab(49.86, -12.60, 44.06)
CIE-LCHlch(49.86, 45.83, 105.95°)
OKLaboklab(56.34% -0.0387 0.099)
OKLCHoklch(56.34% 0.106 111.3)
XYZxyz(15.1790, 18.2993, 4.5659)
Luminance0.1830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B26 #29267B
analogous
#7B5426 #787B26 #4E7B26
triadic
#787B26 #26787B #7B2678
tetradic
#787B26 #267B54 #29267B #7B264E
square
#787B26 #267B54 #29267B #7B264E
split-complementary
#787B26 #264E7B #54267B
monochromatic
#1D1D09 #4A4C18 #787B26 #A6AA34 #C5CA52

Accessibility & contrast

On white

4.51
#787B26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B26#FFFFFF#000000##000000
##787B261.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787b26;
/* rgb */ color: rgb(120, 123, 38);
/* oklch */ color: oklch(56.3% 0.106 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a166',
    500: '#787b26',
    950: '#000000',
  },
}
SCSS
$custom: #787b26;
$custom-light: #a2a166;
$custom-dark: #000000;
JSON
{
  "hex": "#787b26",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 38
  },
  "hsl": {
    "h": 62.118,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5634,
    "c": 0.10629,
    "h": 111.3
  },
  "luminance": 0.18299
}

Semantic roles & 50–950 ramp

primary
#787B26
secondary
#5350AD
accent
#4CDC51
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B26

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

Preview Lab → · Contrast checker → · Palette generator →

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