#796726#796726

#796726 is a mid, moderate yellow. Relative luminance 0.139; OKLCH L 51.8% C 0.087 H 93.6°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#796726
RGBrgb(121, 103, 38)
HSLhsl(47, 52%, 31%)
HSVhsv(47, 69%, 47%)
CMYKcmyk(0%, 14.9%, 68.6%, 52.5%)
CIE-LABlab(44.10, -0.86, 38.10)
CIE-LCHlch(44.10, 38.11, 91.30°)
OKLaboklab(51.78% -0.0054 0.0864)
OKLCHoklch(51.78% 0.087 93.6)
XYZxyz(13.0859, 13.9061, 3.8282)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796726 #263879
analogous
#793D26 #796726 #617926
triadic
#796726 #267967 #672679
tetradic
#796726 #26793D #263879 #792661
square
#796726 #26793D #263879 #792661
split-complementary
#796726 #266179 #3D2679
monochromatic
#1C1809 #4A3F17 #796726 #A88F35 #C8AE51

Accessibility & contrast

On white

5.55
#796726 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#796726 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796726
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796726#FFFFFF#000000##FFFFFF
##7967261.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72651E
Deuteranopia (green-blind)
#766B29
Tritanopia (blue-blind)
#835F59
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #796726;
/* rgb */ color: rgb(121, 103, 38);
/* oklch */ color: oklch(51.8% 0.087 93.6);
Tailwind
colors: {
  custom: {
    50: '#a29264',
    500: '#796726',
    950: '#000000',
  },
}
SCSS
$custom: #796726;
$custom-light: #a29264;
$custom-dark: #000000;
JSON
{
  "hex": "#796726",
  "rgb": {
    "r": 121,
    "g": 103,
    "b": 38
  },
  "hsl": {
    "h": 46.988,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51784,
    "c": 0.08655,
    "h": 93.6
  },
  "luminance": 0.13905
}

Semantic roles & 50–950 ramp

primary
#796726
secondary
#5063AB
accent
#6BDC4C
background
#FAF8F6
surface
#F4F0EB
border
#CECBC6
text
#0F0C05
muted
#7F7D7A

Preview Lab

Preview with #796726

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

Preview Lab → · Contrast checker → · Palette generator →

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