#796820#796820

#796820 is a mid, moderate yellow. Relative luminance 0.141; OKLCH L 52.0% C 0.092 H 95.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#796820
RGBrgb(121, 104, 32)
HSLhsl(49, 58%, 30%)
HSVhsv(49, 74%, 47%)
CMYKcmyk(0%, 14%, 73.6%, 52.5%)
CIE-LABlab(44.33, -1.81, 41.09)
CIE-LCHlch(44.33, 41.13, 92.52°)
OKLaboklab(51.95% -0.0089 0.0916)
OKLCHoklch(51.95% 0.092 95.5)
XYZxyz(13.0968, 14.0706, 3.3923)
Luminance0.1407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796820 #203179
analogous
#793B20 #796820 #5E7920
triadic
#796820 #207968 #682079
tetradic
#796820 #20793B #203179 #79205E
square
#796820 #20793B #203179 #79205E
split-complementary
#796820 #205E79 #3B2079
monochromatic
#181506 #493E13 #796820 #A9922D #CEB445

Accessibility & contrast

On white

5.51
#796820 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#796820 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796820
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796820#FFFFFF#000000##FFFFFF
##7968201.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736616
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#836059
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #796820;
/* rgb */ color: rgb(121, 104, 32);
/* oklch */ color: oklch(52.0% 0.092 95.5);
Tailwind
colors: {
  custom: {
    50: '#a39260',
    500: '#796820',
    950: '#000000',
  },
}
SCSS
$custom: #796820;
$custom-light: #a39260;
$custom-dark: #000000;
JSON
{
  "hex": "#796820",
  "rgb": {
    "r": 121,
    "g": 104,
    "b": 32
  },
  "hsl": {
    "h": 48.539,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.51954,
    "c": 0.09203,
    "h": 95.5
  },
  "luminance": 0.1407
}

Semantic roles & 50–950 ramp

primary
#796820
secondary
#495CAC
accent
#64E146
background
#FAF8F5
surface
#F4F0EA
border
#CECBC6
text
#0F0D05
muted
#7F7D79

Preview Lab

Preview with #796820

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

Preview Lab → · Contrast checker → · Palette generator →

#796820 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva