#797142#797142

#797142 is a mid, moderate yellow. Relative luminance 0.163; OKLCH L 54.4% C 0.067 H 99.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#797142
RGBrgb(121, 113, 66)
HSLhsl(51, 29%, 37%)
HSVhsv(51, 45%, 47%)
CMYKcmyk(0%, 6.6%, 45.5%, 52.5%)
CIE-LABlab(47.33, -4.12, 27.14)
CIE-LCHlch(47.33, 27.45, 98.63°)
OKLaboklab(54.45% -0.0114 0.0657)
OKLCHoklch(54.45% 0.067 99.8)
XYZxyz(14.7740, 16.2690, 7.5152)
Luminance0.1627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797142 #424A79
analogous
#795642 #797142 #667942
triadic
#797142 #427971 #714279
tetradic
#797142 #427956 #424A79 #794266
square
#797142 #427956 #424A79 #794266
split-complementary
#797142 #426679 #564279
monochromatic
#2A2717 #514C2C #797142 #A19658 #B8B07D

Accessibility & contrast

On white

4.94
#797142 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#797142 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797142
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797142#FFFFFF#000000##FFFFFF
##7971421.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3E
Deuteranopia (green-blind)
#7C7244
Tritanopia (blue-blind)
#806B66
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797142;
/* rgb */ color: rgb(121, 113, 66);
/* oklch */ color: oklch(54.4% 0.067 99.8);
Tailwind
colors: {
  custom: {
    50: '#a19977',
    500: '#797142',
    950: '#000000',
  },
}
SCSS
$custom: #797142;
$custom-light: #a19977;
$custom-dark: #000000;
JSON
{
  "hex": "#797142",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 66
  },
  "hsl": {
    "h": 51.273,
    "s": 29.412,
    "l": 36.667
  },
  "oklch": {
    "l": 0.54449,
    "c": 0.06671,
    "h": 99.8
  },
  "luminance": 0.16269
}

Semantic roles & 50–950 ramp

primary
#797142
secondary
#747BA3
accent
#71C662
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797142

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

Preview Lab → · Contrast checker → · Palette generator →

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