#797336#797336

#797336 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.7% C 0.082 H 103.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797336
RGBrgb(121, 115, 54)
HSLhsl(55, 38%, 34%)
HSVhsv(55, 55%, 47%)
CMYKcmyk(0%, 5%, 55.4%, 52.5%)
CIE-LABlab(47.74, -6.48, 34.14)
CIE-LCHlch(47.74, 34.75, 100.74°)
OKLaboklab(54.73% -0.0195 0.0802)
OKLCHoklch(54.73% 0.082 103.7)
XYZxyz(14.6822, 16.5932, 5.9187)
Luminance0.1659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797336 #363C79
analogous
#795236 #797336 #5E7936
triadic
#797336 #367973 #733679
tetradic
#797336 #367952 #363C79 #79365E
square
#797336 #367952 #363C79 #79365E
split-complementary
#797336 #365E79 #523679
monochromatic
#242310 #4F4B23 #797336 #A39B49 #BDB66C

Accessibility & contrast

On white

4.86
#797336 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#797336 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797336
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797336#FFFFFF#000000##FFFFFF
##7973361.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F30
Deuteranopia (green-blind)
#7E7339
Tritanopia (blue-blind)
#816C65
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797336;
/* rgb */ color: rgb(121, 115, 54);
/* oklch */ color: oklch(54.7% 0.082 103.7);
Tailwind
colors: {
  custom: {
    50: '#a19b6f',
    500: '#797336',
    950: '#000000',
  },
}
SCSS
$custom: #797336;
$custom-light: #a19b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#797336",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 54
  },
  "hsl": {
    "h": 54.627,
    "s": 38.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54727,
    "c": 0.08249,
    "h": 103.7
  },
  "luminance": 0.16593
}

Semantic roles & 50–950 ramp

primary
#797336
secondary
#656BA6
accent
#64CE5A
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797336

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

Preview Lab → · Contrast checker → · Palette generator →

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