#797236#797236

#797236 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.5% C 0.081 H 102.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#797236
RGBrgb(121, 114, 54)
HSLhsl(54, 38%, 34%)
HSVhsv(54, 55%, 47%)
CMYKcmyk(0%, 5.8%, 55.4%, 52.5%)
CIE-LABlab(47.45, -5.91, 33.80)
CIE-LCHlch(47.45, 34.31, 99.92°)
OKLaboklab(54.5% -0.0179 0.0794)
OKLCHoklch(54.5% 0.081 102.7)
XYZxyz(14.5688, 16.3664, 5.8809)
Luminance0.1637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797236 #363D79
analogous
#795136 #797236 #5F7936
triadic
#797236 #367972 #723679
tetradic
#797236 #367951 #363D79 #79365F
square
#797236 #367951 #363D79 #79365F
split-complementary
#797236 #365F79 #513679
monochromatic
#242210 #4F4A23 #797236 #A39A49 #BDB56C

Accessibility & contrast

On white

4.91
#797236 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#797236 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797236
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797236#FFFFFF#000000##FFFFFF
##7972361.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F30
Deuteranopia (green-blind)
#7D7239
Tritanopia (blue-blind)
#816B64
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797236;
/* rgb */ color: rgb(121, 114, 54);
/* oklch */ color: oklch(54.5% 0.081 102.7);
Tailwind
colors: {
  custom: {
    50: '#a19a6f',
    500: '#797236',
    950: '#000000',
  },
}
SCSS
$custom: #797236;
$custom-light: #a19a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#797236",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 54
  },
  "hsl": {
    "h": 53.731,
    "s": 38.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54496,
    "c": 0.0814,
    "h": 102.7
  },
  "luminance": 0.16366
}

Semantic roles & 50–950 ramp

primary
#797236
secondary
#656CA6
accent
#66CE5A
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797236

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

Preview Lab → · Contrast checker → · Palette generator →

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