#796C17#796C17

#796C17 is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.8% C 0.101 H 100.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#796C17
RGBrgb(121, 108, 23)
HSLhsl(52, 68%, 28%)
HSVhsv(52, 81%, 47%)
CMYKcmyk(0%, 10.7%, 81%, 52.5%)
CIE-LABlab(45.43, -4.54, 45.70)
CIE-LCHlch(45.43, 45.93, 95.67°)
OKLaboklab(52.81% -0.0177 0.0995)
OKLCHoklch(52.81% 0.101 100.1)
XYZxyz(13.4030, 14.8526, 2.9713)
Luminance0.1485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C17 #172479
analogous
#793B17 #796C17 #557917
triadic
#796C17 #17796C #6C1779
tetradic
#796C17 #17793B #172479 #791755
square
#796C17 #17793B #172479 #791755
split-complementary
#796C17 #175579 #3B1779
monochromatic
#1A1705 #463E0D #796C17 #AC9A21 #D8C232

Accessibility & contrast

On white

5.29
#796C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#796C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C17
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C17#FFFFFF#000000##FFFFFF
##796C171.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776903
Deuteranopia (green-blind)
#7B6E1D
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c17;
/* rgb */ color: rgb(121, 108, 23);
/* oklch */ color: oklch(52.8% 0.101 100.1);
Tailwind
colors: {
  custom: {
    50: '#a3955c',
    500: '#796c17',
    950: '#000000',
  },
}
SCSS
$custom: #796c17;
$custom-light: #a3955c;
$custom-dark: #000000;
JSON
{
  "hex": "#796c17",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 23
  },
  "hsl": {
    "h": 52.041,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52805,
    "c": 0.10107,
    "h": 100.1
  },
  "luminance": 0.14852
}

Semantic roles & 50–950 ramp

primary
#796C17
secondary
#3E4DAE
accent
#54EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796C17

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

Preview Lab → · Contrast checker → · Palette generator →

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