#797E31#797E31

#797E31 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.3% C 0.100 H 112.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#797E31
RGBrgb(121, 126, 49)
HSLhsl(64, 44%, 34%)
HSVhsv(64, 61%, 49%)
CMYKcmyk(4%, 0%, 61.1%, 50.6%)
CIE-LABlab(50.93, -12.99, 40.25)
CIE-LCHlch(50.93, 42.30, 107.88°)
OKLaboklab(57.25% -0.0386 0.0926)
OKLCHoklch(57.25% 0.1 112.6)
XYZxyz(15.9008, 19.2087, 5.7752)
Luminance0.1921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E31 #36317E
analogous
#7E5D31 #797E31 #537E31
triadic
#797E31 #31797E #7E3179
tetradic
#797E31 #317E5D #36317E #7E3153
square
#797E31 #317E5D #36317E #7E3153
split-complementary
#797E31 #31537E #5D317E
monochromatic
#24260F #4F5220 #797E31 #A3AA42 #BDC366

Accessibility & contrast

On white

4.34
#797E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#797E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E31
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E31#FFFFFF#000000##000000
##797E311.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877828
Deuteranopia (green-blind)
#877A36
Tritanopia (blue-blind)
#81776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e31;
/* rgb */ color: rgb(121, 126, 49);
/* oklch */ color: oklch(57.3% 0.100 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a36c',
    500: '#797e31',
    950: '#000000',
  },
}
SCSS
$custom: #797e31;
$custom-light: #a2a36c;
$custom-dark: #000000;
JSON
{
  "hex": "#797e31",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 49
  },
  "hsl": {
    "h": 63.896,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.5725,
    "c": 0.10036,
    "h": 112.6
  },
  "luminance": 0.19208
}

Semantic roles & 50–950 ramp

primary
#797E31
secondary
#6560AB
accent
#54D45C
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797E31

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

Preview Lab → · Contrast checker → · Palette generator →

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