#796F28#796F28

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

Color values

HEX#796F28
RGBrgb(121, 111, 40)
HSLhsl(53, 50%, 32%)
HSVhsv(53, 67%, 47%)
CMYKcmyk(0%, 8.3%, 66.9%, 52.5%)
CIE-LABlab(46.43, -5.33, 39.63)
CIE-LCHlch(46.43, 39.99, 97.65°)
OKLaboklab(53.64% -0.0179 0.09)
OKLCHoklch(53.64% 0.092 101.3)
XYZxyz(13.9532, 15.5876, 4.2808)
Luminance0.1559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F28 #283279
analogous
#794728 #796F28 #5B7928
triadic
#796F28 #28796F #6F2879
tetradic
#796F28 #287947 #283279 #79285B
square
#796F28 #287947 #283279 #79285B
split-complementary
#796F28 #285B79 #472879
monochromatic
#1D1B0A #4B4519 #796F28 #A79937 #C7B955

Accessibility & contrast

On white

5.10
#796F28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#796F28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F28
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F28#FFFFFF#000000##FFFFFF
##796F281.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C1F
Deuteranopia (green-blind)
#7C702C
Tritanopia (blue-blind)
#826760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f28;
/* rgb */ color: rgb(121, 111, 40);
/* oklch */ color: oklch(53.6% 0.092 101.3);
Tailwind
colors: {
  custom: {
    50: '#a29866',
    500: '#796f28',
    950: '#000000',
  },
}
SCSS
$custom: #796f28;
$custom-light: #a29866;
$custom-dark: #000000;
JSON
{
  "hex": "#796f28",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 40
  },
  "hsl": {
    "h": 52.593,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53636,
    "c": 0.09173,
    "h": 101.3
  },
  "luminance": 0.15587
}

Semantic roles & 50–950 ramp

primary
#796F28
secondary
#525DAB
accent
#5FDA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796F28

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

Preview Lab → · Contrast checker → · Palette generator →

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