#787226#787226

#787226 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.2% C 0.096 H 104.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#787226
RGBrgb(120, 114, 38)
HSLhsl(56, 52%, 31%)
HSVhsv(56, 68%, 47%)
CMYKcmyk(0%, 5%, 68.3%, 52.9%)
CIE-LABlab(47.19, -7.62, 41.32)
CIE-LCHlch(47.19, 42.02, 100.45°)
OKLaboklab(54.22% -0.0246 0.0932)
OKLCHoklch(54.22% 0.096 104.8)
XYZxyz(14.1134, 16.1682, 4.2107)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787226 #262C78
analogous
#784926 #787226 #557826
triadic
#787226 #267872 #722678
tetradic
#787226 #267849 #262C78 #782655
square
#787226 #267849 #262C78 #782655
split-complementary
#787226 #265578 #492678
monochromatic
#1B1A09 #4A4617 #787226 #A69E35 #C8BF51

Accessibility & contrast

On white

4.96
#787226 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#787226 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787226
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787226#FFFFFF#000000##FFFFFF
##7872261.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1C
Deuteranopia (green-blind)
#7E712B
Tritanopia (blue-blind)
#816A62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787226;
/* rgb */ color: rgb(120, 114, 38);
/* oklch */ color: oklch(54.2% 0.096 104.8);
Tailwind
colors: {
  custom: {
    50: '#a29a65',
    500: '#787226',
    950: '#000000',
  },
}
SCSS
$custom: #787226;
$custom-light: #a29a65;
$custom-dark: #000000;
JSON
{
  "hex": "#787226",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 38
  },
  "hsl": {
    "h": 55.61,
    "s": 51.899,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54216,
    "c": 0.09643,
    "h": 104.8
  },
  "luminance": 0.16168
}

Semantic roles & 50–950 ramp

primary
#787226
secondary
#5056AA
accent
#57DB4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787226

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

Preview Lab → · Contrast checker → · Palette generator →

#787226 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva