#787A26#787A26

#787A26 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.1% C 0.105 H 110.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#787A26
RGBrgb(120, 122, 38)
HSLhsl(61, 53%, 31%)
HSVhsv(61, 69%, 48%)
CMYKcmyk(1.6%, 0%, 68.9%, 52.2%)
CIE-LABlab(49.56, -12.05, 43.76)
CIE-LCHlch(49.56, 45.39, 105.40°)
OKLaboklab(56.1% -0.0371 0.0984)
OKLCHoklch(56.1% 0.105 110.7)
XYZxyz(15.0556, 18.0525, 4.5247)
Luminance0.1805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A26 #28267A
analogous
#7A5226 #787A26 #4E7A26
triadic
#787A26 #26787A #7A2678
tetradic
#787A26 #267A52 #28267A #7A264E
square
#787A26 #267A52 #28267A #7A264E
split-complementary
#787A26 #264E7A #52267A
monochromatic
#1C1D09 #4A4B17 #787A26 #A6A935 #C6C951

Accessibility & contrast

On white

4.55
#787A26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#787A26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A26
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A26#FFFFFF#000000##000000
##787A261.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#84751A
Deuteranopia (green-blind)
#84772C
Tritanopia (blue-blind)
#807269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a26;
/* rgb */ color: rgb(120, 122, 38);
/* oklch */ color: oklch(56.1% 0.105 110.7);
Tailwind
colors: {
  custom: {
    50: '#a2a066',
    500: '#787a26',
    950: '#000000',
  },
}
SCSS
$custom: #787a26;
$custom-light: #a2a066;
$custom-dark: #000000;
JSON
{
  "hex": "#787a26",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 38
  },
  "hsl": {
    "h": 61.429,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56102,
    "c": 0.10514,
    "h": 110.7
  },
  "luminance": 0.18052
}

Semantic roles & 50–950 ramp

primary
#787A26
secondary
#5250AC
accent
#4CDC4F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787A26

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

Preview Lab → · Contrast checker → · Palette generator →

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