#796F23#796F23

#796F23 is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.6% C 0.096 H 101.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#796F23
RGBrgb(121, 111, 35)
HSLhsl(53, 55%, 31%)
HSVhsv(53, 71%, 47%)
CMYKcmyk(0%, 8.3%, 71.1%, 52.5%)
CIE-LABlab(46.39, -5.64, 41.85)
CIE-LCHlch(46.39, 42.23, 97.68°)
OKLaboklab(53.59% -0.0195 0.0938)
OKLCHoklch(53.59% 0.096 101.7)
XYZxyz(13.8736, 15.5558, 3.8616)
Luminance0.1555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F23 #232D79
analogous
#794423 #796F23 #587923
triadic
#796F23 #23796F #6F2379
tetradic
#796F23 #237944 #232D79 #792358
square
#796F23 #237944 #232D79 #792358
split-complementary
#796F23 #235879 #442379
monochromatic
#1A1808 #4A4315 #796F23 #A89B31 #CBBC4B

Accessibility & contrast

On white

5.11
#796F23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#796F23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F23
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F23#FFFFFF#000000##FFFFFF
##796F231.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C18
Deuteranopia (green-blind)
#7C7028
Tritanopia (blue-blind)
#826760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f23;
/* rgb */ color: rgb(121, 111, 35);
/* oklch */ color: oklch(53.6% 0.096 101.7);
Tailwind
colors: {
  custom: {
    50: '#a29863',
    500: '#796f23',
    950: '#000000',
  },
}
SCSS
$custom: #796f23;
$custom-light: #a29863;
$custom-dark: #000000;
JSON
{
  "hex": "#796f23",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 35
  },
  "hsl": {
    "h": 53.023,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53588,
    "c": 0.09578,
    "h": 101.7
  },
  "luminance": 0.15555
}

Semantic roles & 50–950 ramp

primary
#796F23
secondary
#4C57AC
accent
#5BDE49
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796F23

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

Preview Lab → · Contrast checker → · Palette generator →

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