#796F31#796F31

#796F31 is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.7% C 0.083 H 100.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#796F31
RGBrgb(121, 111, 49)
HSLhsl(52, 42%, 33%)
HSVhsv(52, 60%, 47%)
CMYKcmyk(0%, 8.3%, 59.5%, 52.5%)
CIE-LABlab(46.52, -4.64, 35.31)
CIE-LCHlch(46.52, 35.61, 97.49°)
OKLaboklab(53.74% -0.0148 0.0821)
OKLCHoklch(53.74% 0.083 100.3)
XYZxyz(14.1245, 15.6561, 5.1831)
Luminance0.1566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F31 #313B79
analogous
#794B31 #796F31 #5F7931
triadic
#796F31 #31796F #6F3179
tetradic
#796F31 #31794B #313B79 #79315F
square
#796F31 #31794B #313B79 #79315F
split-complementary
#796F31 #315F79 #4B3179
monochromatic
#221F0E #4D471F #796F31 #A59743 #C0B364

Accessibility & contrast

On white

5.08
#796F31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#796F31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F31
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F31#FFFFFF#000000##FFFFFF
##796F311.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C2B
Deuteranopia (green-blind)
#7C7034
Tritanopia (blue-blind)
#826861
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f31;
/* rgb */ color: rgb(121, 111, 49);
/* oklch */ color: oklch(53.7% 0.083 100.3);
Tailwind
colors: {
  custom: {
    50: '#a2986b',
    500: '#796f31',
    950: '#000000',
  },
}
SCSS
$custom: #796f31;
$custom-light: #a2986b;
$custom-dark: #000000;
JSON
{
  "hex": "#796f31",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 49
  },
  "hsl": {
    "h": 51.667,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53738,
    "c": 0.08341,
    "h": 100.3
  },
  "luminance": 0.15656
}

Semantic roles & 50–950 ramp

primary
#796F31
secondary
#5E68A8
accent
#67D256
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #796F31

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

Preview Lab → · Contrast checker → · Palette generator →

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