#797C4E#797C4E

#797C4E is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.2% C 0.066 H 111.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797C4E
RGBrgb(121, 124, 78)
HSLhsl(64, 23%, 40%)
HSVhsv(64, 37%, 49%)
CMYKcmyk(2.4%, 0%, 37.1%, 51.4%)
CIE-LABlab(50.72, -8.85, 24.77)
CIE-LCHlch(50.72, 26.30, 109.67°)
OKLaboklab(57.21% -0.024 0.061)
OKLCHoklch(57.21% 0.066 111.5)
XYZxyz(16.4681, 19.0305, 10.0120)
Luminance0.1903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C4E #514E7C
analogous
#7C684E #797C4E #627C4E
triadic
#797C4E #4E797C #7C4E79
tetradic
#797C4E #4E7C68 #514E7C #7C4E62
square
#797C4E #4E7C68 #514E7C #7C4E62
split-complementary
#797C4E #4E627C #684E7C
monochromatic
#30311F #545636 #797C4E #9CA067 #B5B78D

Accessibility & contrast

On white

4.37
#797C4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#797C4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C4E
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C4E#FFFFFF#000000##000000
##797C4E1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#83784B
Deuteranopia (green-blind)
#837950
Tritanopia (blue-blind)
#7F7770
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797c4e;
/* rgb */ color: rgb(121, 124, 78);
/* oklch */ color: oklch(57.2% 0.066 111.5);
Tailwind
colors: {
  custom: {
    50: '#a0a180',
    500: '#797c4e',
    950: '#000000',
  },
}
SCSS
$custom: #797c4e;
$custom-light: #a0a180;
$custom-dark: #000000;
JSON
{
  "hex": "#797c4e",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 78
  },
  "hsl": {
    "h": 63.913,
    "s": 22.772,
    "l": 39.608
  },
  "oklch": {
    "l": 0.57208,
    "c": 0.0655,
    "h": 111.5
  },
  "luminance": 0.1903
}

Semantic roles & 50–950 ramp

primary
#797C4E
secondary
#8482A4
accent
#69BF6E
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0F0A
muted
#7E7E7C

Preview Lab

Preview with #797C4E

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

Preview Lab → · Contrast checker → · Palette generator →

#797C4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva