#796D28#796D28

#796D28 is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.090 H 99.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#796D28
RGBrgb(121, 109, 40)
HSLhsl(51, 50%, 32%)
HSVhsv(51, 67%, 47%)
CMYKcmyk(0%, 9.9%, 66.9%, 52.5%)
CIE-LABlab(45.85, -4.19, 39.01)
CIE-LCHlch(45.85, 39.23, 96.12°)
OKLaboklab(53.17% -0.0147 0.0887)
OKLCHoklch(53.17% 0.09 99.4)
XYZxyz(13.7374, 15.1560, 4.2089)
Luminance0.1515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D28 #283479
analogous
#794528 #796D28 #5D7928
triadic
#796D28 #28796D #6D2879
tetradic
#796D28 #287945 #283479 #79285D
square
#796D28 #287945 #283479 #79285D
split-complementary
#796D28 #285D79 #452879
monochromatic
#1D1A0A #4B4419 #796D28 #A79637 #C7B655

Accessibility & contrast

On white

5.21
#796D28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#796D28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D28
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D28#FFFFFF#000000##FFFFFF
##796D281.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A20
Deuteranopia (green-blind)
#7B6E2C
Tritanopia (blue-blind)
#82655E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796d28;
/* rgb */ color: rgb(121, 109, 40);
/* oklch */ color: oklch(53.2% 0.090 99.4);
Tailwind
colors: {
  custom: {
    50: '#a29665',
    500: '#796d28',
    950: '#000000',
  },
}
SCSS
$custom: #796d28;
$custom-light: #a29665;
$custom-dark: #000000;
JSON
{
  "hex": "#796d28",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 40
  },
  "hsl": {
    "h": 51.111,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53174,
    "c": 0.08986,
    "h": 99.4
  },
  "luminance": 0.15155
}

Semantic roles & 50–950 ramp

primary
#796D28
secondary
#525FAB
accent
#63DA4E
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796D28

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

Preview Lab → · Contrast checker → · Palette generator →

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