#796B31#796B31

#796B31 is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.8% C 0.080 H 95.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#796B31
RGBrgb(121, 107, 49)
HSLhsl(48, 42%, 33%)
HSVhsv(48, 60%, 47%)
CMYKcmyk(0%, 11.6%, 59.5%, 52.5%)
CIE-LABlab(45.36, -2.35, 33.98)
CIE-LCHlch(45.36, 34.06, 93.96°)
OKLaboklab(52.82% -0.0082 0.0792)
OKLCHoklch(52.82% 0.08 95.9)
XYZxyz(13.6978, 14.8027, 5.0408)
Luminance0.1480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B31 #313F79
analogous
#794731 #796B31 #637931
triadic
#796B31 #31796B #6B3179
tetradic
#796B31 #317947 #313F79 #793163
square
#796B31 #317947 #313F79 #793163
split-complementary
#796B31 #316379 #473179
monochromatic
#221E0E #4D441F #796B31 #A59243 #C0AE64

Accessibility & contrast

On white

5.30
#796B31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#796B31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B31
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B31#FFFFFF#000000##FFFFFF
##796B311.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75692B
Deuteranopia (green-blind)
#796D34
Tritanopia (blue-blind)
#82645E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b31;
/* rgb */ color: rgb(121, 107, 49);
/* oklch */ color: oklch(52.8% 0.080 95.9);
Tailwind
colors: {
  custom: {
    50: '#a2956b',
    500: '#796b31',
    950: '#000000',
  },
}
SCSS
$custom: #796b31;
$custom-light: #a2956b;
$custom-dark: #000000;
JSON
{
  "hex": "#796b31",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 49
  },
  "hsl": {
    "h": 48.333,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52821,
    "c": 0.07965,
    "h": 95.9
  },
  "luminance": 0.14802
}

Semantic roles & 50–950 ramp

primary
#796B31
secondary
#5E6CA8
accent
#6ED256
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #796B31

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

Preview Lab → · Contrast checker → · Palette generator →

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