#797342#797342

#797342 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.9% C 0.069 H 102.3°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#797342
RGBrgb(121, 115, 66)
HSLhsl(53, 29%, 37%)
HSVhsv(53, 45%, 47%)
CMYKcmyk(0%, 5%, 45.5%, 52.5%)
CIE-LABlab(47.91, -5.26, 27.87)
CIE-LCHlch(47.91, 28.36, 100.68°)
OKLaboklab(54.91% -0.0146 0.0674)
OKLCHoklch(54.91% 0.069 102.3)
XYZxyz(14.9996, 16.7202, 7.5904)
Luminance0.1672 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797342 #424879
analogous
#795842 #797342 #647942
triadic
#797342 #427973 #734279
tetradic
#797342 #427958 #424879 #794264
square
#797342 #427958 #424879 #794264
split-complementary
#797342 #426479 #584279
monochromatic
#2A2817 #514D2C #797342 #A19958 #B8B27D

Accessibility & contrast

On white

4.83
#797342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#797342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797342
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797342#FFFFFF#000000##FFFFFF
##7973421.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#7D7344
Tritanopia (blue-blind)
#806D67
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797342;
/* rgb */ color: rgb(121, 115, 66);
/* oklch */ color: oklch(54.9% 0.069 102.3);
Tailwind
colors: {
  custom: {
    50: '#a19b77',
    500: '#797342',
    950: '#000000',
  },
}
SCSS
$custom: #797342;
$custom-light: #a19b77;
$custom-dark: #000000;
JSON
{
  "hex": "#797342",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 66
  },
  "hsl": {
    "h": 53.455,
    "s": 29.412,
    "l": 36.667
  },
  "oklch": {
    "l": 0.54909,
    "c": 0.06894,
    "h": 102.3
  },
  "luminance": 0.1672
}

Semantic roles & 50–950 ramp

primary
#797342
secondary
#7479A3
accent
#6DC662
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797342

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

Preview Lab → · Contrast checker → · Palette generator →

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