#796D26#796D26

#796D26 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.2% C 0.092 H 99.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#796D26
RGBrgb(121, 109, 38)
HSLhsl(51, 52%, 31%)
HSVhsv(51, 69%, 47%)
CMYKcmyk(0%, 9.9%, 68.6%, 52.5%)
CIE-LABlab(45.83, -4.32, 39.93)
CIE-LCHlch(45.83, 40.16, 96.17°)
OKLaboklab(53.15% -0.0153 0.0903)
OKLCHoklch(53.15% 0.092 99.6)
XYZxyz(13.7042, 15.1428, 4.0343)
Luminance0.1514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D26 #263279
analogous
#794326 #796D26 #5B7926
triadic
#796D26 #26796D #6D2679
tetradic
#796D26 #267943 #263279 #79265B
square
#796D26 #267943 #263279 #79265B
split-complementary
#796D26 #265B79 #432679
monochromatic
#1C1909 #4A4317 #796D26 #A89735 #C8B751

Accessibility & contrast

On white

5.21
#796D26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#796D26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D26
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D26#FFFFFF#000000##FFFFFF
##796D261.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A1D
Deuteranopia (green-blind)
#7B6E2A
Tritanopia (blue-blind)
#82655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d26;
/* rgb */ color: rgb(121, 109, 38);
/* oklch */ color: oklch(53.2% 0.092 99.6);
Tailwind
colors: {
  custom: {
    50: '#a29664',
    500: '#796d26',
    950: '#000000',
  },
}
SCSS
$custom: #796d26;
$custom-light: #a29664;
$custom-dark: #000000;
JSON
{
  "hex": "#796d26",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 38
  },
  "hsl": {
    "h": 51.325,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53154,
    "c": 0.09154,
    "h": 99.6
  },
  "luminance": 0.15142
}

Semantic roles & 50–950 ramp

primary
#796D26
secondary
#505DAB
accent
#61DC4C
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796D26

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

Preview Lab → · Contrast checker → · Palette generator →

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