#796D23#796D23

#796D23 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.1% C 0.094 H 99.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#796D23
RGBrgb(121, 109, 35)
HSLhsl(52, 55%, 31%)
HSVhsv(52, 71%, 47%)
CMYKcmyk(0%, 9.9%, 71.1%, 52.5%)
CIE-LABlab(45.80, -4.51, 41.26)
CIE-LCHlch(45.80, 41.50, 96.23°)
OKLaboklab(53.13% -0.0162 0.0925)
OKLCHoklch(53.13% 0.094 99.9)
XYZxyz(13.6578, 15.1242, 3.7896)
Luminance0.1512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D23 #232F79
analogous
#794223 #796D23 #5A7923
triadic
#796D23 #23796D #6D2379
tetradic
#796D23 #237942 #232F79 #79235A
square
#796D23 #237942 #232F79 #79235A
split-complementary
#796D23 #235A79 #422379
monochromatic
#1A1708 #4A4215 #796D23 #A89831 #CBB94B

Accessibility & contrast

On white

5.22
#796D23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#796D23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D23
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D23#FFFFFF#000000##FFFFFF
##796D231.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A19
Deuteranopia (green-blind)
#7B6E27
Tritanopia (blue-blind)
#83655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d23;
/* rgb */ color: rgb(121, 109, 35);
/* oklch */ color: oklch(53.1% 0.094 99.9);
Tailwind
colors: {
  custom: {
    50: '#a39663',
    500: '#796d23',
    950: '#000000',
  },
}
SCSS
$custom: #796d23;
$custom-light: #a39663;
$custom-dark: #000000;
JSON
{
  "hex": "#796d23",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 35
  },
  "hsl": {
    "h": 51.628,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53126,
    "c": 0.09394,
    "h": 99.9
  },
  "luminance": 0.15124
}

Semantic roles & 50–950 ramp

primary
#796D23
secondary
#4C59AC
accent
#5EDE49
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796D23

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

Preview Lab → · Contrast checker → · Palette generator →

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