#796B28#796B28

#796B28 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.7% C 0.088 H 97.4°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#796B28
RGBrgb(121, 107, 40)
HSLhsl(50, 50%, 32%)
HSVhsv(50, 67%, 47%)
CMYKcmyk(0%, 11.6%, 66.9%, 52.5%)
CIE-LABlab(45.27, -3.04, 38.39)
CIE-LCHlch(45.27, 38.51, 94.53°)
OKLaboklab(52.72% -0.0114 0.0873)
OKLCHoklch(52.72% 0.088 97.4)
XYZxyz(13.5264, 14.7342, 4.1386)
Luminance0.1473 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B28 #283679
analogous
#794328 #796B28 #5F7928
triadic
#796B28 #28796B #6B2879
tetradic
#796B28 #287943 #283679 #79285F
square
#796B28 #287943 #283679 #79285F
split-complementary
#796B28 #285F79 #432879
monochromatic
#1D1A0A #4B4219 #796B28 #A79437 #C7B355

Accessibility & contrast

On white

5.32
#796B28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #796B28
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B28#FFFFFF#000000##FFFFFF
##796B281.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796b28;
/* rgb */ color: rgb(121, 107, 40);
/* oklch */ color: oklch(52.7% 0.088 97.4);
Tailwind
colors: {
  custom: {
    50: '#a29565',
    500: '#796b28',
    950: '#000000',
  },
}
SCSS
$custom: #796b28;
$custom-light: #a29565;
$custom-dark: #000000;
JSON
{
  "hex": "#796b28",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 40
  },
  "hsl": {
    "h": 49.63,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52715,
    "c": 0.08808,
    "h": 97.4
  },
  "luminance": 0.14734
}

Semantic roles & 50–950 ramp

primary
#796B28
secondary
#5261AB
accent
#66DA4E
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796B28

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

Preview Lab → · Contrast checker → · Palette generator →

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