#796C28#796C28

#796C28 is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.9% C 0.089 H 98.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#796C28
RGBrgb(121, 108, 40)
HSLhsl(50, 50%, 32%)
HSVhsv(50, 67%, 47%)
CMYKcmyk(0%, 10.7%, 66.9%, 52.5%)
CIE-LABlab(45.56, -3.61, 38.70)
CIE-LCHlch(45.56, 38.87, 95.33°)
OKLaboklab(52.95% -0.013 0.088)
OKLCHoklch(52.95% 0.089 98.4)
XYZxyz(13.6313, 14.9439, 4.1735)
Luminance0.1494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C28 #283579
analogous
#794428 #796C28 #5E7928
triadic
#796C28 #28796C #6C2879
tetradic
#796C28 #287944 #283579 #79285E
square
#796C28 #287944 #283579 #79285E
split-complementary
#796C28 #285E79 #442879
monochromatic
#1D1A0A #4B4319 #796C28 #A79537 #C7B455

Accessibility & contrast

On white

5.27
#796C28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#796C28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C28
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C28#FFFFFF#000000##FFFFFF
##796C281.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766920
Deuteranopia (green-blind)
#7A6E2C
Tritanopia (blue-blind)
#82645E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c28;
/* rgb */ color: rgb(121, 108, 40);
/* oklch */ color: oklch(52.9% 0.089 98.4);
Tailwind
colors: {
  custom: {
    50: '#a29565',
    500: '#796c28',
    950: '#000000',
  },
}
SCSS
$custom: #796c28;
$custom-light: #a29565;
$custom-dark: #000000;
JSON
{
  "hex": "#796c28",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 40
  },
  "hsl": {
    "h": 50.37,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52945,
    "c": 0.08895,
    "h": 98.4
  },
  "luminance": 0.14943
}

Semantic roles & 50–950 ramp

primary
#796C28
secondary
#5260AB
accent
#64DA4E
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796C28

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

Preview Lab → · Contrast checker → · Palette generator →

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