#797C31#797C31

#797C31 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.098 H 111.3°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#797C31
RGBrgb(121, 124, 49)
HSLhsl(62, 43%, 34%)
HSVhsv(62, 60%, 49%)
CMYKcmyk(2.4%, 0%, 60.5%, 51.4%)
CIE-LABlab(50.34, -11.90, 39.60)
CIE-LCHlch(50.34, 41.35, 106.73°)
OKLaboklab(56.78% -0.0355 0.0913)
OKLCHoklch(56.78% 0.098 111.3)
XYZxyz(15.6476, 18.7024, 5.6908)
Luminance0.1870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C31 #34317C
analogous
#7C5A31 #797C31 #547C31
triadic
#797C31 #31797C #7C3179
tetradic
#797C31 #317C5A #34317C #7C3154
square
#797C31 #317C5A #34317C #7C3154
split-complementary
#797C31 #31547C #5A317C
monochromatic
#23240E #4E5020 #797C31 #A4A842 #BEC265

Accessibility & contrast

On white

4.43
#797C31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#797C31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C31
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C31#FFFFFF#000000##000000
##797C311.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#857729
Deuteranopia (green-blind)
#867935
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c31;
/* rgb */ color: rgb(121, 124, 49);
/* oklch */ color: oklch(56.8% 0.098 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a16c',
    500: '#797c31',
    950: '#000000',
  },
}
SCSS
$custom: #797c31;
$custom-light: #a2a16c;
$custom-dark: #000000;
JSON
{
  "hex": "#797c31",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 49
  },
  "hsl": {
    "h": 62.4,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56776,
    "c": 0.09792,
    "h": 111.3
  },
  "luminance": 0.18702
}

Semantic roles & 50–950 ramp

primary
#797C31
secondary
#625FAA
accent
#55D35A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797C31

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

Preview Lab → · Contrast checker → · Palette generator →

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