#797334#797334

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

Color values

HEX#797334
RGBrgb(121, 115, 52)
HSLhsl(55, 40%, 34%)
HSVhsv(55, 57%, 47%)
CMYKcmyk(0%, 5%, 57%, 52.5%)
CIE-LABlab(47.72, -6.66, 35.15)
CIE-LCHlch(47.72, 35.77, 100.72°)
OKLaboklab(54.7% -0.0202 0.0821)
OKLCHoklch(54.7% 0.085 103.8)
XYZxyz(14.6362, 16.5748, 5.6764)
Luminance0.1657 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797334 #343A79
analogous
#795134 #797334 #5D7934
triadic
#797334 #347973 #733479
tetradic
#797334 #347951 #343A79 #79345D
square
#797334 #347951 #343A79 #79345D
split-complementary
#797334 #345D79 #513479
monochromatic
#23220F #4E4A22 #797334 #A49C46 #BEB769

Accessibility & contrast

On white

4.87
#797334 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#797334 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797334
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797334#FFFFFF#000000##FFFFFF
##7973341.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797334;
/* rgb */ color: rgb(121, 115, 52);
/* oklch */ color: oklch(54.7% 0.085 103.8);
Tailwind
colors: {
  custom: {
    50: '#a29b6e',
    500: '#797334',
    950: '#000000',
  },
}
SCSS
$custom: #797334;
$custom-light: #a29b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#797334",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 52
  },
  "hsl": {
    "h": 54.783,
    "s": 39.884,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54701,
    "c": 0.08456,
    "h": 103.8
  },
  "luminance": 0.16574
}

Semantic roles & 50–950 ramp

primary
#797334
secondary
#6268A7
accent
#62D058
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797334

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

Preview Lab → · Contrast checker → · Palette generator →

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