#796A31#796A31

#796A31 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.079 H 94.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#796A31
RGBrgb(121, 106, 49)
HSLhsl(48, 42%, 33%)
HSVhsv(48, 60%, 47%)
CMYKcmyk(0%, 12.4%, 59.5%, 52.5%)
CIE-LABlab(45.08, -1.77, 33.65)
CIE-LCHlch(45.08, 33.70, 93.02°)
OKLaboklab(52.59% -0.0066 0.0785)
OKLCHoklch(52.59% 0.079 94.8)
XYZxyz(13.5941, 14.5954, 5.0063)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A31 #314079
analogous
#794631 #796A31 #647931
triadic
#796A31 #31796A #6A3179
tetradic
#796A31 #317946 #314079 #793164
square
#796A31 #317946 #314079 #793164
split-complementary
#796A31 #316479 #463179
monochromatic
#221E0E #4D441F #796A31 #A59043 #C0AD64

Accessibility & contrast

On white

5.36
#796A31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#796A31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A31
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A31#FFFFFF#000000##FFFFFF
##796A311.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74682B
Deuteranopia (green-blind)
#786D33
Tritanopia (blue-blind)
#82635D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796a31;
/* rgb */ color: rgb(121, 106, 49);
/* oklch */ color: oklch(52.6% 0.079 94.8);
Tailwind
colors: {
  custom: {
    50: '#a2946b',
    500: '#796a31',
    950: '#000000',
  },
}
SCSS
$custom: #796a31;
$custom-light: #a2946b;
$custom-dark: #000000;
JSON
{
  "hex": "#796a31",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 49
  },
  "hsl": {
    "h": 47.5,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52593,
    "c": 0.07879,
    "h": 94.8
  },
  "luminance": 0.14595
}

Semantic roles & 50–950 ramp

primary
#796A31
secondary
#5E6DA8
accent
#70D256
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #796A31

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

Preview Lab → · Contrast checker → · Palette generator →

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