#796F26#796F26

#796F26 is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.6% C 0.093 H 101.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#796F26
RGBrgb(121, 111, 38)
HSLhsl(53, 52%, 31%)
HSVhsv(53, 69%, 47%)
CMYKcmyk(0%, 8.3%, 68.6%, 52.5%)
CIE-LABlab(46.41, -5.46, 40.54)
CIE-LCHlch(46.41, 40.90, 97.67°)
OKLaboklab(53.62% -0.0186 0.0915)
OKLCHoklch(53.62% 0.093 101.5)
XYZxyz(13.9200, 15.5744, 4.1063)
Luminance0.1557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F26 #263079
analogous
#794526 #796F26 #597926
triadic
#796F26 #26796F #6F2679
tetradic
#796F26 #267945 #263079 #792659
square
#796F26 #267945 #263079 #792659
split-complementary
#796F26 #265979 #452679
monochromatic
#1C1A09 #4A4417 #796F26 #A89A35 #C8BA51

Accessibility & contrast

On white

5.10
#796F26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#796F26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F26
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F26#FFFFFF#000000##FFFFFF
##796F261.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C1D
Deuteranopia (green-blind)
#7C702A
Tritanopia (blue-blind)
#826760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f26;
/* rgb */ color: rgb(121, 111, 38);
/* oklch */ color: oklch(53.6% 0.093 101.5);
Tailwind
colors: {
  custom: {
    50: '#a29864',
    500: '#796f26',
    950: '#000000',
  },
}
SCSS
$custom: #796f26;
$custom-light: #a29864;
$custom-dark: #000000;
JSON
{
  "hex": "#796f26",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 38
  },
  "hsl": {
    "h": 52.771,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53616,
    "c": 0.0934,
    "h": 101.5
  },
  "luminance": 0.15574
}

Semantic roles & 50–950 ramp

primary
#796F26
secondary
#505BAB
accent
#5DDC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796F26

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

Preview Lab → · Contrast checker → · Palette generator →

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