#796E23#796E23

#796E23 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.4% C 0.095 H 100.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#796E23
RGBrgb(121, 110, 35)
HSLhsl(52, 55%, 31%)
HSVhsv(52, 71%, 47%)
CMYKcmyk(0%, 9.1%, 71.1%, 52.5%)
CIE-LABlab(46.09, -5.08, 41.56)
CIE-LCHlch(46.09, 41.86, 96.97°)
OKLaboklab(53.36% -0.0178 0.0932)
OKLCHoklch(53.36% 0.095 100.8)
XYZxyz(13.7651, 15.3388, 3.8254)
Luminance0.1534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E23 #232E79
analogous
#794323 #796E23 #597923
triadic
#796E23 #23796E #6E2379
tetradic
#796E23 #237943 #232E79 #792359
square
#796E23 #237943 #232E79 #792359
split-complementary
#796E23 #235979 #432379
monochromatic
#1A1808 #4A4315 #796E23 #A89931 #CBBB4B

Accessibility & contrast

On white

5.16
#796E23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#796E23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E23
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E23#FFFFFF#000000##FFFFFF
##796E231.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B19
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#82665F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e23;
/* rgb */ color: rgb(121, 110, 35);
/* oklch */ color: oklch(53.4% 0.095 100.8);
Tailwind
colors: {
  custom: {
    50: '#a39763',
    500: '#796e23',
    950: '#000000',
  },
}
SCSS
$custom: #796e23;
$custom-light: #a39763;
$custom-dark: #000000;
JSON
{
  "hex": "#796e23",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 35
  },
  "hsl": {
    "h": 52.326,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53357,
    "c": 0.09485,
    "h": 100.8
  },
  "luminance": 0.15338
}

Semantic roles & 50–950 ramp

primary
#796E23
secondary
#4C58AC
accent
#5CDE49
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796E23

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

Preview Lab → · Contrast checker → · Palette generator →

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