#796E31#796E31

#796E31 is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.5% C 0.082 H 99.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#796E31
RGBrgb(121, 110, 49)
HSLhsl(51, 42%, 33%)
HSVhsv(51, 60%, 47%)
CMYKcmyk(0%, 9.1%, 59.5%, 52.5%)
CIE-LABlab(46.23, -4.07, 34.98)
CIE-LCHlch(46.23, 35.21, 96.64°)
OKLaboklab(53.51% -0.0132 0.0814)
OKLCHoklch(53.51% 0.082 99.2)
XYZxyz(14.0160, 15.4391, 5.1469)
Luminance0.1544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E31 #313C79
analogous
#794A31 #796E31 #607931
triadic
#796E31 #31796E #6E3179
tetradic
#796E31 #31794A #313C79 #793160
square
#796E31 #31794A #313C79 #793160
split-complementary
#796E31 #316079 #4A3179
monochromatic
#221F0E #4D461F #796E31 #A59643 #C0B264

Accessibility & contrast

On white

5.14
#796E31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#796E31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E31
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E31#FFFFFF#000000##FFFFFF
##796E311.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786B2B
Deuteranopia (green-blind)
#7B6F34
Tritanopia (blue-blind)
#826760
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e31;
/* rgb */ color: rgb(121, 110, 49);
/* oklch */ color: oklch(53.5% 0.082 99.2);
Tailwind
colors: {
  custom: {
    50: '#a2976b',
    500: '#796e31',
    950: '#000000',
  },
}
SCSS
$custom: #796e31;
$custom-light: #a2976b;
$custom-dark: #000000;
JSON
{
  "hex": "#796e31",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 49
  },
  "hsl": {
    "h": 50.833,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53508,
    "c": 0.08244,
    "h": 99.2
  },
  "luminance": 0.15439
}

Semantic roles & 50–950 ramp

primary
#796E31
secondary
#5E69A8
accent
#69D256
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #796E31

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

Preview Lab → · Contrast checker → · Palette generator →

#796E31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva