#797442#797442

#797442 is a mid, moderate yellow. Relative luminance 0.169; OKLCH L 55.1% C 0.070 H 103.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#797442
RGBrgb(121, 116, 66)
HSLhsl(55, 29%, 37%)
HSVhsv(55, 45%, 47%)
CMYKcmyk(0%, 4.1%, 45.5%, 52.5%)
CIE-LABlab(48.20, -5.82, 28.23)
CIE-LCHlch(48.20, 28.83, 101.65°)
OKLaboklab(55.14% -0.0163 0.0682)
OKLCHoklch(55.14% 0.07 103.4)
XYZxyz(15.1142, 16.9495, 7.6286)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797442 #424779
analogous
#795942 #797442 #637942
triadic
#797442 #427974 #744279
tetradic
#797442 #427959 #424779 #794263
square
#797442 #427959 #424779 #794263
split-complementary
#797442 #426379 #594279
monochromatic
#2A2817 #514E2C #797442 #A19A58 #B8B37D

Accessibility & contrast

On white

4.78
#797442 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#797442 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797442
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797442#FFFFFF#000000##FFFFFF
##7974421.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C713E
Deuteranopia (green-blind)
#7E7444
Tritanopia (blue-blind)
#806E68
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797442;
/* rgb */ color: rgb(121, 116, 66);
/* oklch */ color: oklch(55.1% 0.070 103.4);
Tailwind
colors: {
  custom: {
    50: '#a19b77',
    500: '#797442',
    950: '#000000',
  },
}
SCSS
$custom: #797442;
$custom-light: #a19b77;
$custom-dark: #000000;
JSON
{
  "hex": "#797442",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 66
  },
  "hsl": {
    "h": 54.545,
    "s": 29.412,
    "l": 36.667
  },
  "oklch": {
    "l": 0.55139,
    "c": 0.07011,
    "h": 103.4
  },
  "luminance": 0.16949
}

Semantic roles & 50–950 ramp

primary
#797442
secondary
#7478A3
accent
#6BC662
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797442

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

Preview Lab → · Contrast checker → · Palette generator →

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