#796B18#796B18

#796B18 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.100 H 99.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#796B18
RGBrgb(121, 107, 24)
HSLhsl(51, 67%, 28%)
HSVhsv(51, 80%, 47%)
CMYKcmyk(0%, 11.6%, 80.2%, 52.5%)
CIE-LABlab(45.15, -3.93, 45.09)
CIE-LCHlch(45.15, 45.26, 94.98°)
OKLaboklab(52.58% -0.0158 0.0984)
OKLCHoklch(52.58% 0.1 99.1)
XYZxyz(13.3084, 14.6470, 2.9901)
Luminance0.1465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B18 #182679
analogous
#793A18 #796B18 #567918
triadic
#796B18 #18796B #6B1879
tetradic
#796B18 #18793A #182679 #791856
square
#796B18 #18793A #182679 #791856
split-complementary
#796B18 #185679 #3A1879
monochromatic
#1A1705 #463E0E #796B18 #AC9822 #D7BF35

Accessibility & contrast

On white

5.34
#796B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#796B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B18
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B18#FFFFFF#000000##FFFFFF
##796B181.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766806
Deuteranopia (green-blind)
#7A6D1E
Tritanopia (blue-blind)
#83625B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b18;
/* rgb */ color: rgb(121, 107, 24);
/* oklch */ color: oklch(52.6% 0.100 99.1);
Tailwind
colors: {
  custom: {
    50: '#a3955c',
    500: '#796b18',
    950: '#000000',
  },
}
SCSS
$custom: #796b18;
$custom-light: #a3955c;
$custom-dark: #000000;
JSON
{
  "hex": "#796b18",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 24
  },
  "hsl": {
    "h": 51.34,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52581,
    "c": 0.09968,
    "h": 99.1
  },
  "luminance": 0.14646
}

Semantic roles & 50–950 ramp

primary
#796B18
secondary
#3F4FAE
accent
#57EA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796B18

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

Preview Lab → · Contrast checker → · Palette generator →

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