#796C24#796C24

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

Color values

HEX#796C24
RGBrgb(121, 108, 36)
HSLhsl(51, 54%, 31%)
HSVhsv(51, 70%, 47%)
CMYKcmyk(0%, 10.7%, 70.2%, 52.5%)
CIE-LABlab(45.52, -3.87, 40.52)
CIE-LCHlch(45.52, 40.71, 95.46°)
OKLaboklab(52.91% -0.0143 0.0912)
OKLCHoklch(52.91% 0.092 98.9)
XYZxyz(13.5668, 14.9181, 3.8336)
Luminance0.1492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C24 #243179
analogous
#794224 #796C24 #5B7924
triadic
#796C24 #24796C #6C2479
tetradic
#796C24 #247942 #243179 #79245B
square
#796C24 #247942 #243179 #79245B
split-complementary
#796C24 #245B79 #422479
monochromatic
#1B1808 #4A4216 #796C24 #A89632 #CAB74D

Accessibility & contrast

On white

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

On black

3.98
#796C24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##796C24#FFFFFF#000000##FFFFFF
##796C241.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77691A
Deuteranopia (green-blind)
#7A6E28
Tritanopia (blue-blind)
#83645D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c24;
/* rgb */ color: rgb(121, 108, 36);
/* oklch */ color: oklch(52.9% 0.092 98.9);
Tailwind
colors: {
  custom: {
    50: '#a29563',
    500: '#796c24',
    950: '#000000',
  },
}
SCSS
$custom: #796c24;
$custom-light: #a29563;
$custom-dark: #000000;
JSON
{
  "hex": "#796c24",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 36
  },
  "hsl": {
    "h": 50.824,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52905,
    "c": 0.09226,
    "h": 98.9
  },
  "luminance": 0.14917
}

Semantic roles & 50–950 ramp

primary
#796C24
secondary
#4D5CAC
accent
#61DE4A
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796C24

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

Preview Lab → · Contrast checker → · Palette generator →

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