#796F17#796F17

#796F17 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.5% C 0.104 H 102.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#796F17
RGBrgb(121, 111, 23)
HSLhsl(54, 68%, 28%)
HSVhsv(54, 81%, 47%)
CMYKcmyk(0%, 8.3%, 81%, 52.5%)
CIE-LABlab(46.31, -6.25, 46.50)
CIE-LCHlch(46.31, 46.91, 97.65°)
OKLaboklab(53.5% -0.0225 0.1012)
OKLCHoklch(53.5% 0.104 102.5)
XYZxyz(13.7249, 15.4963, 3.0786)
Luminance0.1550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F17 #172179
analogous
#793E17 #796F17 #527917
triadic
#796F17 #17796F #6F1779
tetradic
#796F17 #17793E #172179 #791752
square
#796F17 #17793E #172179 #791752
split-complementary
#796F17 #175279 #3E1779
monochromatic
#1A1805 #46400D #796F17 #AC9E21 #D8C732

Accessibility & contrast

On white

5.12
#796F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#796F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F17
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F17#FFFFFF#000000##FFFFFF
##796F171.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B02
Deuteranopia (green-blind)
#7D701E
Tritanopia (blue-blind)
#83665F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f17;
/* rgb */ color: rgb(121, 111, 23);
/* oklch */ color: oklch(53.5% 0.104 102.5);
Tailwind
colors: {
  custom: {
    50: '#a3985d',
    500: '#796f17',
    950: '#000000',
  },
}
SCSS
$custom: #796f17;
$custom-light: #a3985d;
$custom-dark: #000000;
JSON
{
  "hex": "#796f17",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 53.878,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.535,
    "c": 0.10368,
    "h": 102.5
  },
  "luminance": 0.15496
}

Semantic roles & 50–950 ramp

primary
#796F17
secondary
#3E49AE
accent
#4FEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796F17

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

Preview Lab → · Contrast checker → · Palette generator →

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