#787D26#787D26

#787D26 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.109 H 112.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#787D26
RGBrgb(120, 125, 38)
HSLhsl(63, 53%, 32%)
HSVhsv(63, 70%, 49%)
CMYKcmyk(4%, 0%, 69.6%, 51%)
CIE-LABlab(50.45, -13.68, 44.67)
CIE-LCHlch(50.45, 46.72, 107.03°)
OKLaboklab(56.82% -0.0417 0.1003)
OKLCHoklch(56.82% 0.109 112.6)
XYZxyz(15.4296, 18.8006, 4.6494)
Luminance0.1880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D26 #2B267D
analogous
#7D5726 #787D26 #4D7D26
triadic
#787D26 #26787D #7D2678
tetradic
#787D26 #267D57 #2B267D #7D264D
square
#787D26 #267D57 #2B267D #7D264D
split-complementary
#787D26 #264D7D #57267D
monochromatic
#1E1F09 #4B4E18 #787D26 #A5AC34 #C4CB53

Accessibility & contrast

On white

4.41
#787D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#787D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D26
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D26#FFFFFF#000000##000000
##787D261.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877719
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#80756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d26;
/* rgb */ color: rgb(120, 125, 38);
/* oklch */ color: oklch(56.8% 0.109 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a266',
    500: '#787d26',
    950: '#000000',
  },
}
SCSS
$custom: #787d26;
$custom-light: #a2a266;
$custom-dark: #000000;
JSON
{
  "hex": "#787d26",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 38
  },
  "hsl": {
    "h": 63.448,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56817,
    "c": 0.10861,
    "h": 112.6
  },
  "luminance": 0.188
}

Semantic roles & 50–950 ramp

primary
#787D26
secondary
#5550AF
accent
#4BDD53
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D26

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

Preview Lab → · Contrast checker → · Palette generator →

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