#797131#797131

#797131 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.085 H 102.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#797131
RGBrgb(121, 113, 49)
HSLhsl(53, 42%, 33%)
HSVhsv(53, 60%, 47%)
CMYKcmyk(0%, 6.6%, 59.5%, 52.5%)
CIE-LABlab(47.10, -5.78, 35.97)
CIE-LCHlch(47.10, 36.43, 99.13°)
OKLaboklab(54.2% -0.0181 0.0835)
OKLCHoklch(54.2% 0.085 102.2)
XYZxyz(14.3452, 16.0975, 5.2566)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797131 #313979
analogous
#794D31 #797131 #5D7931
triadic
#797131 #317971 #713179
tetradic
#797131 #31794D #313979 #79315D
square
#797131 #31794D #313979 #79315D
split-complementary
#797131 #315D79 #4D3179
monochromatic
#22200E #4D481F #797131 #A59A43 #C0B664

Accessibility & contrast

On white

4.98
#797131 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#797131 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797131
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797131#FFFFFF#000000##FFFFFF
##7971311.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6E2A
Deuteranopia (green-blind)
#7D7134
Tritanopia (blue-blind)
#826A63
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797131;
/* rgb */ color: rgb(121, 113, 49);
/* oklch */ color: oklch(54.2% 0.085 102.2);
Tailwind
colors: {
  custom: {
    50: '#a2996b',
    500: '#797131',
    950: '#000000',
  },
}
SCSS
$custom: #797131;
$custom-light: #a2996b;
$custom-dark: #000000;
JSON
{
  "hex": "#797131",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 49
  },
  "hsl": {
    "h": 53.333,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54199,
    "c": 0.08544,
    "h": 102.2
  },
  "luminance": 0.16097
}

Semantic roles & 50–950 ramp

primary
#797131
secondary
#5E66A8
accent
#63D256
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #797131

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

Preview Lab → · Contrast checker → · Palette generator →

#797131 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva