#796E2F#796E2F

#796E2F is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.5% C 0.084 H 99.5°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#796E2F
RGBrgb(121, 110, 47)
HSLhsl(51, 44%, 33%)
HSVhsv(51, 61%, 47%)
CMYKcmyk(0%, 9.1%, 61.2%, 52.5%)
CIE-LABlab(46.21, -4.24, 35.97)
CIE-LCHlch(46.21, 36.22, 96.72°)
OKLaboklab(53.48% -0.0139 0.0832)
OKLCHoklch(53.48% 0.084 99.5)
XYZxyz(13.9747, 15.4226, 4.9295)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E2F #2F3A79
analogous
#79492F #796E2F #5F792F
triadic
#796E2F #2F796E #6E2F79
tetradic
#796E2F #2F7949 #2F3A79 #792F5F
square
#796E2F #2F7949 #2F3A79 #792F5F
split-complementary
#796E2F #2F5F79 #492F79
monochromatic
#211E0D #4D461E #796E2F #A59640 #C2B361

Accessibility & contrast

On white

5.14
#796E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#796E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E2F
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E2F#FFFFFF#000000##FFFFFF
##796E2F1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786B28
Deuteranopia (green-blind)
#7B6F32
Tritanopia (blue-blind)
#826760
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e2f;
/* rgb */ color: rgb(121, 110, 47);
/* oklch */ color: oklch(53.5% 0.084 99.5);
Tailwind
colors: {
  custom: {
    50: '#a2976a',
    500: '#796e2f',
    950: '#000000',
  },
}
SCSS
$custom: #796e2f;
$custom-light: #a2976a;
$custom-dark: #000000;
JSON
{
  "hex": "#796e2f",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 47
  },
  "hsl": {
    "h": 51.081,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53483,
    "c": 0.0844,
    "h": 99.5
  },
  "luminance": 0.15422
}

Semantic roles & 50–950 ramp

primary
#796E2F
secondary
#5B67A8
accent
#67D454
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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