#796B15#796B15

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

Color values

HEX#796B15
RGBrgb(121, 107, 21)
HSLhsl(52, 70%, 28%)
HSVhsv(52, 83%, 47%)
CMYKcmyk(0%, 11.6%, 82.6%, 52.5%)
CIE-LABlab(45.13, -4.05, 46.12)
CIE-LCHlch(45.13, 46.30, 95.02°)
OKLaboklab(52.56% -0.0165 0.1)
OKLCHoklch(52.56% 0.101 99.3)
XYZxyz(13.2789, 14.6352, 2.8348)
Luminance0.1463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B15 #152379
analogous
#793915 #796B15 #557915
triadic
#796B15 #15796B #6B1579
tetradic
#796B15 #157939 #152379 #791555
square
#796B15 #157939 #152379 #791555
split-complementary
#796B15 #155579 #391579
monochromatic
#1A1705 #453D0C #796B15 #AD991E #DBC22E

Accessibility & contrast

On white

5.35
#796B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #796B15
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B15#FFFFFF#000000##FFFFFF
##796B151.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796b15;
/* rgb */ color: rgb(121, 107, 21);
/* oklch */ color: oklch(52.6% 0.101 99.3);
Tailwind
colors: {
  custom: {
    50: '#a3955b',
    500: '#796b15',
    950: '#000000',
  },
}
SCSS
$custom: #796b15;
$custom-light: #a3955b;
$custom-dark: #000000;
JSON
{
  "hex": "#796b15",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 21
  },
  "hsl": {
    "h": 51.6,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52563,
    "c": 0.10134,
    "h": 99.3
  },
  "luminance": 0.14634
}

Semantic roles & 50–950 ramp

primary
#796B15
secondary
#3B4BAF
accent
#54ED3B
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796B15

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

Preview Lab → · Contrast checker → · Palette generator →

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