#796A2D#796A2D

#796A2D is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.5% C 0.083 H 95.6°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#796A2D
RGBrgb(121, 106, 45)
HSLhsl(48, 46%, 33%)
HSVhsv(48, 63%, 47%)
CMYKcmyk(0%, 12.4%, 62.8%, 52.5%)
CIE-LABlab(45.03, -2.10, 35.66)
CIE-LCHlch(45.03, 35.72, 93.37°)
OKLaboklab(52.54% -0.008 0.0823)
OKLCHoklch(52.54% 0.083 95.6)
XYZxyz(13.5134, 14.5631, 4.5813)
Luminance0.1456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A2D #2D3C79
analogous
#79442D #796A2D #62792D
triadic
#796A2D #2D796A #6A2D79
tetradic
#796A2D #2D7944 #2D3C79 #792D62
square
#796A2D #2D7944 #2D3C79 #792D62
split-complementary
#796A2D #2D6279 #442D79
monochromatic
#201C0C #4C431C #796A2D #A6913E #C3AF5D

Accessibility & contrast

On white

5.37
#796A2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#796A2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A2D
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A2D#FFFFFF#000000##FFFFFF
##796A2D1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746827
Deuteranopia (green-blind)
#786D30
Tritanopia (blue-blind)
#82625D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796a2d;
/* rgb */ color: rgb(121, 106, 45);
/* oklch */ color: oklch(52.5% 0.083 95.6);
Tailwind
colors: {
  custom: {
    50: '#a29468',
    500: '#796a2d',
    950: '#000000',
  },
}
SCSS
$custom: #796a2d;
$custom-light: #a29468;
$custom-dark: #000000;
JSON
{
  "hex": "#796a2d",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 45
  },
  "hsl": {
    "h": 48.158,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52543,
    "c": 0.08269,
    "h": 95.6
  },
  "luminance": 0.14562
}

Semantic roles & 50–950 ramp

primary
#796A2D
secondary
#5868A9
accent
#6CD552
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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