#796F2C#796F2C

#796F2C is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.7% C 0.088 H 100.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#796F2C
RGBrgb(121, 111, 44)
HSLhsl(52, 47%, 32%)
HSVhsv(52, 64%, 47%)
CMYKcmyk(0%, 8.3%, 63.6%, 52.5%)
CIE-LABlab(46.47, -5.04, 37.75)
CIE-LCHlch(46.47, 38.09, 97.60°)
OKLaboklab(53.68% -0.0166 0.0866)
OKLCHoklch(53.68% 0.088 100.9)
XYZxyz(14.0248, 15.6162, 4.6579)
Luminance0.1562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F2C #2C3679
analogous
#79492C #796F2C #5C792C
triadic
#796F2C #2C796F #6F2C79
tetradic
#796F2C #2C7949 #2C3679 #792C5C
square
#796F2C #2C7949 #2C3679 #792C5C
split-complementary
#796F2C #2C5C79 #492C79
monochromatic
#1F1D0B #4C461C #796F2C #A6983C #C4B65C

Accessibility & contrast

On white

5.09
#796F2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#796F2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F2C
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F2C#FFFFFF#000000##FFFFFF
##796F2C1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C25
Deuteranopia (green-blind)
#7C702F
Tritanopia (blue-blind)
#826761
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f2c;
/* rgb */ color: rgb(121, 111, 44);
/* oklch */ color: oklch(53.7% 0.088 100.9);
Tailwind
colors: {
  custom: {
    50: '#a29868',
    500: '#796f2c',
    950: '#000000',
  },
}
SCSS
$custom: #796f2c;
$custom-light: #a29868;
$custom-dark: #000000;
JSON
{
  "hex": "#796f2c",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 44
  },
  "hsl": {
    "h": 52.208,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53678,
    "c": 0.08819,
    "h": 100.9
  },
  "luminance": 0.15616
}

Semantic roles & 50–950 ramp

primary
#796F2C
secondary
#5762AA
accent
#63D651
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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