#796A23#796A23

#796A23 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.4% C 0.091 H 97.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#796A23
RGBrgb(121, 106, 35)
HSLhsl(50, 55%, 31%)
HSVhsv(50, 71%, 47%)
CMYKcmyk(0%, 12.4%, 71.1%, 52.5%)
CIE-LABlab(44.93, -2.79, 40.37)
CIE-LCHlch(44.93, 40.46, 93.95°)
OKLaboklab(52.44% -0.0113 0.0907)
OKLCHoklch(52.44% 0.091 97.1)
XYZxyz(13.3432, 14.4950, 3.6848)
Luminance0.1449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A23 #233279
analogous
#793F23 #796A23 #5D7923
triadic
#796A23 #23796A #6A2379
tetradic
#796A23 #23793F #233279 #79235D
square
#796A23 #23793F #233279 #79235D
split-complementary
#796A23 #235D79 #3F2379
monochromatic
#1A1708 #4A4015 #796A23 #A89431 #CBB54B

Accessibility & contrast

On white

5.39
#796A23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#796A23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A23
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A23#FFFFFF#000000##FFFFFF
##796A231.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756719
Deuteranopia (green-blind)
#796C27
Tritanopia (blue-blind)
#83625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a23;
/* rgb */ color: rgb(121, 106, 35);
/* oklch */ color: oklch(52.4% 0.091 97.1);
Tailwind
colors: {
  custom: {
    50: '#a39462',
    500: '#796a23',
    950: '#000000',
  },
}
SCSS
$custom: #796a23;
$custom-light: #a39462;
$custom-dark: #000000;
JSON
{
  "hex": "#796a23",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 35
  },
  "hsl": {
    "h": 49.535,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52437,
    "c": 0.09135,
    "h": 97.1
  },
  "luminance": 0.14494
}

Semantic roles & 50–950 ramp

primary
#796A23
secondary
#4C5DAC
accent
#63DE49
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796A23

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

Preview Lab → · Contrast checker → · Palette generator →

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