#796B2C#796B2C

#796B2C is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.8% C 0.084 H 96.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#796B2C
RGBrgb(121, 107, 44)
HSLhsl(49, 47%, 32%)
HSVhsv(49, 64%, 47%)
CMYKcmyk(0%, 11.6%, 63.6%, 52.5%)
CIE-LABlab(45.31, -2.75, 36.47)
CIE-LCHlch(45.31, 36.58, 94.31°)
OKLaboklab(52.76% -0.01 0.0839)
OKLCHoklch(52.76% 0.084 96.8)
XYZxyz(13.5980, 14.7628, 4.5156)
Luminance0.1476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B2C #2C3A79
analogous
#79452C #796B2C #61792C
triadic
#796B2C #2C796B #6B2C79
tetradic
#796B2C #2C7945 #2C3A79 #792C61
square
#796B2C #2C7945 #2C3A79 #792C61
split-complementary
#796B2C #2C6179 #452C79
monochromatic
#1F1C0B #4C431C #796B2C #A6933C #C4B15C

Accessibility & contrast

On white

5.31
#796B2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#796B2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B2C
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B2C#FFFFFF#000000##FFFFFF
##796B2C1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756925
Deuteranopia (green-blind)
#796D2F
Tritanopia (blue-blind)
#82635D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b2c;
/* rgb */ color: rgb(121, 107, 44);
/* oklch */ color: oklch(52.8% 0.084 96.8);
Tailwind
colors: {
  custom: {
    50: '#a29568',
    500: '#796b2c',
    950: '#000000',
  },
}
SCSS
$custom: #796b2c;
$custom-light: #a29568;
$custom-dark: #000000;
JSON
{
  "hex": "#796b2c",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 44
  },
  "hsl": {
    "h": 49.091,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5276,
    "c": 0.08449,
    "h": 96.8
  },
  "luminance": 0.14762
}

Semantic roles & 50–950 ramp

primary
#796B2C
secondary
#5766AA
accent
#6AD651
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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