#796C23#796C23

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

Color values

HEX#796C23
RGBrgb(121, 108, 35)
HSLhsl(51, 55%, 31%)
HSVhsv(51, 71%, 47%)
CMYKcmyk(0%, 10.7%, 71.1%, 52.5%)
CIE-LABlab(45.51, -3.94, 40.96)
CIE-LCHlch(45.51, 41.15, 95.49°)
OKLaboklab(52.9% -0.0146 0.0919)
OKLCHoklch(52.9% 0.093 99)
XYZxyz(13.5517, 14.9121, 3.7543)
Luminance0.1491 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C23 #233079
analogous
#794123 #796C23 #5B7923
triadic
#796C23 #23796C #6C2379
tetradic
#796C23 #237941 #233079 #79235B
square
#796C23 #237941 #233079 #79235B
split-complementary
#796C23 #235B79 #412379
monochromatic
#1A1708 #4A4215 #796C23 #A89631 #CBB84B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796C23#FFFFFF#000000##FFFFFF
##796C231.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)
#776919
Deuteranopia (green-blind)
#7A6E27
Tritanopia (blue-blind)
#83645D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c23;
/* rgb */ color: rgb(121, 108, 35);
/* oklch */ color: oklch(52.9% 0.093 99.0);
Tailwind
colors: {
  custom: {
    50: '#a39562',
    500: '#796c23',
    950: '#000000',
  },
}
SCSS
$custom: #796c23;
$custom-light: #a39562;
$custom-dark: #000000;
JSON
{
  "hex": "#796c23",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 35
  },
  "hsl": {
    "h": 50.93,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52896,
    "c": 0.09305,
    "h": 99
  },
  "luminance": 0.14911
}

Semantic roles & 50–950 ramp

primary
#796C23
secondary
#4C5BAC
accent
#60DE49
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796C23

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

Preview Lab → · Contrast checker → · Palette generator →

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