#797A31#797A31

#797A31 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.096 H 109.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#797A31
RGBrgb(121, 122, 49)
HSLhsl(61, 43%, 34%)
HSVhsv(61, 60%, 48%)
CMYKcmyk(0.8%, 0%, 59.8%, 52.2%)
CIE-LABlab(49.75, -10.81, 38.94)
CIE-LCHlch(49.75, 40.41, 105.51°)
OKLaboklab(56.3% -0.0324 0.0899)
OKLCHoklch(56.3% 0.096 109.8)
XYZxyz(15.3995, 18.2062, 5.6081)
Luminance0.1821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A31 #32317A
analogous
#7A5631 #797A31 #547A31
triadic
#797A31 #31797A #7A3179
tetradic
#797A31 #317A56 #32317A #7A3154
square
#797A31 #317A56 #32317A #7A3154
split-complementary
#797A31 #31547A #56317A
monochromatic
#22230E #4E4E1F #797A31 #A4A643 #C0C164

Accessibility & contrast

On white

4.52
#797A31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#797A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A31
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A31#FFFFFF#000000##000000
##797A311.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#837529
Deuteranopia (green-blind)
#847735
Tritanopia (blue-blind)
#81736A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a31;
/* rgb */ color: rgb(121, 122, 49);
/* oklch */ color: oklch(56.3% 0.096 109.8);
Tailwind
colors: {
  custom: {
    50: '#a2a06c',
    500: '#797a31',
    950: '#000000',
  },
}
SCSS
$custom: #797a31;
$custom-light: #a2a06c;
$custom-dark: #000000;
JSON
{
  "hex": "#797a31",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 49
  },
  "hsl": {
    "h": 60.822,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56303,
    "c": 0.09552,
    "h": 109.8
  },
  "luminance": 0.18206
}

Semantic roles & 50–950 ramp

primary
#797A31
secondary
#5F5EA8
accent
#55D257
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797A31

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

Preview Lab → · Contrast checker → · Palette generator →

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