#797B31#797B31

#797B31 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.097 H 110.6°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#797B31
RGBrgb(121, 123, 49)
HSLhsl(62, 43%, 34%)
HSVhsv(62, 60%, 48%)
CMYKcmyk(1.6%, 0%, 60.2%, 51.8%)
CIE-LABlab(50.04, -11.35, 39.27)
CIE-LCHlch(50.04, 40.88, 106.13°)
OKLaboklab(56.54% -0.034 0.0906)
OKLCHoklch(56.54% 0.097 110.6)
XYZxyz(15.5229, 18.4530, 5.6492)
Luminance0.1845 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B31 #33317B
analogous
#7B5831 #797B31 #547B31
triadic
#797B31 #31797B #7B3179
tetradic
#797B31 #317B58 #33317B #7B3154
square
#797B31 #317B58 #33317B #7B3154
split-complementary
#797B31 #31547B #58317B
monochromatic
#23230E #4E4F20 #797B31 #A4A742 #BFC265

Accessibility & contrast

On white

4.48
#797B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#797B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B31
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B31#FFFFFF#000000##000000
##797B311.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#847629
Deuteranopia (green-blind)
#857835
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b31;
/* rgb */ color: rgb(121, 123, 49);
/* oklch */ color: oklch(56.5% 0.097 110.6);
Tailwind
colors: {
  custom: {
    50: '#a2a16c',
    500: '#797b31',
    950: '#000000',
  },
}
SCSS
$custom: #797b31;
$custom-light: #a2a16c;
$custom-dark: #000000;
JSON
{
  "hex": "#797b31",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 49
  },
  "hsl": {
    "h": 61.622,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56539,
    "c": 0.09671,
    "h": 110.6
  },
  "luminance": 0.18453
}

Semantic roles & 50–950 ramp

primary
#797B31
secondary
#615FA9
accent
#55D358
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797B31

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

Preview Lab → · Contrast checker → · Palette generator →

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