#796822#796822

#796822 is a mid, moderate yellow. Relative luminance 0.141; OKLCH L 52.0% C 0.091 H 95.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#796822
RGBrgb(121, 104, 34)
HSLhsl(48, 56%, 30%)
HSVhsv(48, 72%, 47%)
CMYKcmyk(0%, 14%, 71.9%, 52.5%)
CIE-LABlab(44.35, -1.69, 40.22)
CIE-LCHlch(44.35, 40.26, 92.41°)
OKLaboklab(51.97% -0.0083 0.0901)
OKLCHoklch(51.97% 0.091 95.3)
XYZxyz(13.1249, 14.0818, 3.5398)
Luminance0.1408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796822 #223379
analogous
#793C22 #796822 #5E7922
triadic
#796822 #227968 #682279
tetradic
#796822 #22793C #223379 #79225E
square
#796822 #22793C #223379 #79225E
split-complementary
#796822 #225E79 #3C2279
monochromatic
#191607 #493F15 #796822 #A9912F #CCB249

Accessibility & contrast

On white

5.50
#796822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#796822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796822
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796822#FFFFFF#000000##FFFFFF
##7968221.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736619
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#83605A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #796822;
/* rgb */ color: rgb(121, 104, 34);
/* oklch */ color: oklch(52.0% 0.091 95.3);
Tailwind
colors: {
  custom: {
    50: '#a39261',
    500: '#796822',
    950: '#000000',
  },
}
SCSS
$custom: #796822;
$custom-light: #a39261;
$custom-dark: #000000;
JSON
{
  "hex": "#796822",
  "rgb": {
    "r": 121,
    "g": 104,
    "b": 34
  },
  "hsl": {
    "h": 48.276,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51972,
    "c": 0.09053,
    "h": 95.3
  },
  "luminance": 0.14081
}

Semantic roles & 50–950 ramp

primary
#796822
secondary
#4B5EAC
accent
#66DF48
background
#FAF8F5
surface
#F4F0EA
border
#CECBC6
text
#0F0D05
muted
#7F7D79

Preview Lab

Preview with #796822

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

Preview Lab → · Contrast checker → · Palette generator →

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