#797226#797226

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

Color values

HEX#797226
RGBrgb(121, 114, 38)
HSLhsl(55, 52%, 31%)
HSVhsv(55, 69%, 47%)
CMYKcmyk(0%, 5.8%, 68.6%, 52.5%)
CIE-LABlab(47.29, -7.15, 41.45)
CIE-LCHlch(47.29, 42.06, 99.79°)
OKLaboklab(54.31% -0.0234 0.0935)
OKLCHoklch(54.31% 0.096 104)
XYZxyz(14.2529, 16.2401, 4.2172)
Luminance0.1624 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797226 #262D79
analogous
#794826 #797226 #567926
triadic
#797226 #267972 #722679
tetradic
#797226 #267948 #262D79 #792656
square
#797226 #267948 #262D79 #792656
split-complementary
#797226 #265679 #482679
monochromatic
#1C1A09 #4A4617 #797226 #A89E35 #C8BE51

Accessibility & contrast

On white

4.94
#797226 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#797226 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797226
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797226#FFFFFF#000000##FFFFFF
##7972261.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797226;
/* rgb */ color: rgb(121, 114, 38);
/* oklch */ color: oklch(54.3% 0.096 104.0);
Tailwind
colors: {
  custom: {
    50: '#a29a65',
    500: '#797226',
    950: '#000000',
  },
}
SCSS
$custom: #797226;
$custom-light: #a29a65;
$custom-dark: #000000;
JSON
{
  "hex": "#797226",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 38
  },
  "hsl": {
    "h": 54.94,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54313,
    "c": 0.09635,
    "h": 104
  },
  "luminance": 0.1624
}

Semantic roles & 50–950 ramp

primary
#797226
secondary
#5057AB
accent
#58DC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797226

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

Preview Lab → · Contrast checker → · Palette generator →

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