#796A17#796A17

#796A17 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.099 H 98.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#796A17
RGBrgb(121, 106, 23)
HSLhsl(51, 68%, 28%)
HSVhsv(51, 81%, 47%)
CMYKcmyk(0%, 12.4%, 81%, 52.5%)
CIE-LABlab(44.85, -3.40, 45.18)
CIE-LCHlch(44.85, 45.30, 94.30°)
OKLaboklab(52.35% -0.0144 0.0984)
OKLCHoklch(52.35% 0.099 98.3)
XYZxyz(13.1945, 14.4356, 2.9018)
Luminance0.1444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A17 #172679
analogous
#793917 #796A17 #577917
triadic
#796A17 #17796A #6A1779
tetradic
#796A17 #177939 #172679 #791757
square
#796A17 #177939 #172679 #791757
split-complementary
#796A17 #175779 #391779
monochromatic
#1A1705 #463D0D #796A17 #AC9721 #D8BF32

Accessibility & contrast

On white

5.40
#796A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#796A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A17
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A17#FFFFFF#000000##FFFFFF
##796A171.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756704
Deuteranopia (green-blind)
#796C1D
Tritanopia (blue-blind)
#83615A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a17;
/* rgb */ color: rgb(121, 106, 23);
/* oklch */ color: oklch(52.3% 0.099 98.3);
Tailwind
colors: {
  custom: {
    50: '#a3945c',
    500: '#796a17',
    950: '#000000',
  },
}
SCSS
$custom: #796a17;
$custom-light: #a3945c;
$custom-dark: #000000;
JSON
{
  "hex": "#796a17",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 50.816,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52345,
    "c": 0.09944,
    "h": 98.3
  },
  "luminance": 0.14435
}

Semantic roles & 50–950 ramp

primary
#796A17
secondary
#3E4FAE
accent
#58EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796A17

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

Preview Lab → · Contrast checker → · Palette generator →

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