#796B23#796B23

#796B23 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.7% C 0.092 H 98.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#796B23
RGBrgb(121, 107, 35)
HSLhsl(50, 55%, 31%)
HSVhsv(50, 71%, 47%)
CMYKcmyk(0%, 11.6%, 71.1%, 52.5%)
CIE-LABlab(45.22, -3.36, 40.67)
CIE-LCHlch(45.22, 40.80, 94.73°)
OKLaboklab(52.67% -0.013 0.0913)
OKLCHoklch(52.67% 0.092 98.1)
XYZxyz(13.4468, 14.7023, 3.7193)
Luminance0.1470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B23 #233179
analogous
#794023 #796B23 #5C7923
triadic
#796B23 #23796B #6B2379
tetradic
#796B23 #237940 #233179 #79235C
square
#796B23 #237940 #233179 #79235C
split-complementary
#796B23 #235C79 #402379
monochromatic
#1A1708 #4A4115 #796B23 #A89531 #CBB64B

Accessibility & contrast

On white

5.33
#796B23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#796B23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B23
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B23#FFFFFF#000000##FFFFFF
##796B231.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766819
Deuteranopia (green-blind)
#7A6D27
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b23;
/* rgb */ color: rgb(121, 107, 35);
/* oklch */ color: oklch(52.7% 0.092 98.1);
Tailwind
colors: {
  custom: {
    50: '#a39562',
    500: '#796b23',
    950: '#000000',
  },
}
SCSS
$custom: #796b23;
$custom-light: #a39562;
$custom-dark: #000000;
JSON
{
  "hex": "#796b23",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 35
  },
  "hsl": {
    "h": 50.233,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52666,
    "c": 0.09219,
    "h": 98.1
  },
  "luminance": 0.14702
}

Semantic roles & 50–950 ramp

primary
#796B23
secondary
#4C5CAC
accent
#62DE49
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796B23

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

Preview Lab → · Contrast checker → · Palette generator →

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