#796A28#796A28

#796A28 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.5% C 0.087 H 96.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#796A28
RGBrgb(121, 106, 40)
HSLhsl(49, 50%, 32%)
HSVhsv(49, 67%, 47%)
CMYKcmyk(0%, 12.4%, 66.9%, 52.5%)
CIE-LABlab(44.98, -2.46, 38.08)
CIE-LCHlch(44.98, 38.16, 93.70°)
OKLaboklab(52.49% -0.0097 0.0867)
OKLCHoklch(52.49% 0.087 96.4)
XYZxyz(13.4228, 14.5269, 4.1040)
Luminance0.1453 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A28 #283779
analogous
#794228 #796A28 #607928
triadic
#796A28 #28796A #6A2879
tetradic
#796A28 #287942 #283779 #792860
square
#796A28 #287942 #283779 #792860
split-complementary
#796A28 #286079 #422879
monochromatic
#1D190A #4B4219 #796A28 #A79237 #C7B255

Accessibility & contrast

On white

5.38
#796A28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#796A28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A28
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A28#FFFFFF#000000##FFFFFF
##796A281.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756820
Deuteranopia (green-blind)
#786D2B
Tritanopia (blue-blind)
#83625C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a28;
/* rgb */ color: rgb(121, 106, 40);
/* oklch */ color: oklch(52.5% 0.087 96.4);
Tailwind
colors: {
  custom: {
    50: '#a29465',
    500: '#796a28',
    950: '#000000',
  },
}
SCSS
$custom: #796a28;
$custom-light: #a29465;
$custom-dark: #000000;
JSON
{
  "hex": "#796a28",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 40
  },
  "hsl": {
    "h": 48.889,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52487,
    "c": 0.08723,
    "h": 96.4
  },
  "luminance": 0.14526
}

Semantic roles & 50–950 ramp

primary
#796A28
secondary
#5262AB
accent
#68DA4E
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796A28

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

Preview Lab → · Contrast checker → · Palette generator →

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