#797D31#797D31

#797D31 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.099 H 112.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#797D31
RGBrgb(121, 125, 49)
HSLhsl(63, 44%, 34%)
HSVhsv(63, 61%, 49%)
CMYKcmyk(3.2%, 0%, 60.8%, 51%)
CIE-LABlab(50.63, -12.45, 39.93)
CIE-LCHlch(50.63, 41.82, 107.31°)
OKLaboklab(57.01% -0.0371 0.092)
OKLCHoklch(57.01% 0.099 112)
XYZxyz(15.7735, 18.9543, 5.7328)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D31 #35317D
analogous
#7D5B31 #797D31 #537D31
triadic
#797D31 #31797D #7D3179
tetradic
#797D31 #317D5B #35317D #7D3153
square
#797D31 #317D5B #35317D #7D3153
split-complementary
#797D31 #31537D #5B317D
monochromatic
#24250F #4E5120 #797D31 #A4A942 #BEC366

Accessibility & contrast

On white

4.38
#797D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#797D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D31
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D31#FFFFFF#000000##000000
##797D311.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867829
Deuteranopia (green-blind)
#867A36
Tritanopia (blue-blind)
#81766D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797d31;
/* rgb */ color: rgb(121, 125, 49);
/* oklch */ color: oklch(57.0% 0.099 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a26c',
    500: '#797d31',
    950: '#000000',
  },
}
SCSS
$custom: #797d31;
$custom-light: #a2a26c;
$custom-dark: #000000;
JSON
{
  "hex": "#797d31",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 63.158,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57013,
    "c": 0.09914,
    "h": 112
  },
  "luminance": 0.18954
}

Semantic roles & 50–950 ramp

primary
#797D31
secondary
#6360AA
accent
#54D35B
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797D31

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

Preview Lab → · Contrast checker → · Palette generator →

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