#796C26#796C26

#796C26 is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.9% C 0.091 H 98.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#796C26
RGBrgb(121, 108, 38)
HSLhsl(51, 52%, 31%)
HSVhsv(51, 69%, 47%)
CMYKcmyk(0%, 10.7%, 68.6%, 52.5%)
CIE-LABlab(45.54, -3.75, 39.62)
CIE-LCHlch(45.54, 39.80, 95.40°)
OKLaboklab(52.92% -0.0137 0.0896)
OKLCHoklch(52.92% 0.091 98.7)
XYZxyz(13.5982, 14.9306, 3.9990)
Luminance0.1493 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C26 #263379
analogous
#794226 #796C26 #5C7926
triadic
#796C26 #26796C #6C2679
tetradic
#796C26 #267942 #263379 #79265C
square
#796C26 #267942 #263379 #79265C
split-complementary
#796C26 #265C79 #422679
monochromatic
#1C1909 #4A4217 #796C26 #A89635 #C8B651

Accessibility & contrast

On white

5.27
#796C26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#796C26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C26
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C26#FFFFFF#000000##FFFFFF
##796C261.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77691D
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#82645D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c26;
/* rgb */ color: rgb(121, 108, 38);
/* oklch */ color: oklch(52.9% 0.091 98.7);
Tailwind
colors: {
  custom: {
    50: '#a29564',
    500: '#796c26',
    950: '#000000',
  },
}
SCSS
$custom: #796c26;
$custom-light: #a29564;
$custom-dark: #000000;
JSON
{
  "hex": "#796c26",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 38
  },
  "hsl": {
    "h": 50.602,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52924,
    "c": 0.09065,
    "h": 98.7
  },
  "luminance": 0.1493
}

Semantic roles & 50–950 ramp

primary
#796C26
secondary
#505EAB
accent
#63DC4C
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796C26

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

Preview Lab → · Contrast checker → · Palette generator →

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