#797242#797242

#797242 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.7% C 0.068 H 101.1°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#797242
RGBrgb(121, 114, 66)
HSLhsl(52, 29%, 37%)
HSVhsv(52, 45%, 47%)
CMYKcmyk(0%, 5.8%, 45.5%, 52.5%)
CIE-LABlab(47.62, -4.69, 27.51)
CIE-LCHlch(47.62, 27.90, 99.67°)
OKLaboklab(54.68% -0.013 0.0666)
OKLCHoklch(54.68% 0.068 101.1)
XYZxyz(14.8862, 16.4934, 7.5526)
Luminance0.1649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797242 #424979
analogous
#795742 #797242 #657942
triadic
#797242 #427972 #724279
tetradic
#797242 #427957 #424979 #794265
square
#797242 #427957 #424979 #794265
split-complementary
#797242 #426579 #574279
monochromatic
#2A2717 #514D2C #797242 #A19758 #B8B17D

Accessibility & contrast

On white

4.89
#797242 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#797242 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797242
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797242#FFFFFF#000000##FFFFFF
##7972421.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3E
Deuteranopia (green-blind)
#7C7244
Tritanopia (blue-blind)
#806C66
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797242;
/* rgb */ color: rgb(121, 114, 66);
/* oklch */ color: oklch(54.7% 0.068 101.1);
Tailwind
colors: {
  custom: {
    50: '#a19a77',
    500: '#797242',
    950: '#000000',
  },
}
SCSS
$custom: #797242;
$custom-light: #a19a77;
$custom-dark: #000000;
JSON
{
  "hex": "#797242",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 66
  },
  "hsl": {
    "h": 52.364,
    "s": 29.412,
    "l": 36.667
  },
  "oklch": {
    "l": 0.54678,
    "c": 0.06781,
    "h": 101.1
  },
  "luminance": 0.16493
}

Semantic roles & 50–950 ramp

primary
#797242
secondary
#747AA3
accent
#6FC662
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797242

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

Preview Lab → · Contrast checker → · Palette generator →

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