#796E1C#796E1C

#796E1C is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.3% C 0.100 H 101.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#796E1C
RGBrgb(121, 110, 28)
HSLhsl(53, 62%, 29%)
HSVhsv(53, 77%, 47%)
CMYKcmyk(0%, 9.1%, 76.9%, 52.5%)
CIE-LABlab(46.04, -5.46, 44.42)
CIE-LCHlch(46.04, 44.75, 97.00°)
OKLaboklab(53.3% -0.0197 0.0978)
OKLCHoklch(53.3% 0.1 101.4)
XYZxyz(13.6713, 15.3013, 3.3317)
Luminance0.1530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E1C #1C2779
analogous
#79401C #796E1C #56791C
triadic
#796E1C #1C796E #6E1C79
tetradic
#796E1C #1C7940 #1C2779 #791C56
square
#796E1C #1C7940 #1C2779 #791C56
split-complementary
#796E1C #1C5679 #401C79
monochromatic
#191706 #474110 #796E1C #AB9B28 #D2C13D

Accessibility & contrast

On white

5.17
#796E1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#796E1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E1C
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E1C#FFFFFF#000000##FFFFFF
##796E1C1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B0D
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#83665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e1c;
/* rgb */ color: rgb(121, 110, 28);
/* oklch */ color: oklch(53.3% 0.100 101.4);
Tailwind
colors: {
  custom: {
    50: '#a3975f',
    500: '#796e1c',
    950: '#000000',
  },
}
SCSS
$custom: #796e1c;
$custom-light: #a3975f;
$custom-dark: #000000;
JSON
{
  "hex": "#796e1c",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 28
  },
  "hsl": {
    "h": 52.903,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53301,
    "c": 0.09981,
    "h": 101.4
  },
  "luminance": 0.15301
}

Semantic roles & 50–950 ramp

primary
#796E1C
secondary
#4450AD
accent
#56E542
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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