#796828#796828

#796828 is a mid, moderate yellow. Relative luminance 0.141; OKLCH L 52.0% C 0.086 H 94.3°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#796828
RGBrgb(121, 104, 40)
HSLhsl(47, 50%, 32%)
HSVhsv(47, 67%, 47%)
CMYKcmyk(0%, 14%, 66.9%, 52.5%)
CIE-LABlab(44.40, -1.31, 37.46)
CIE-LCHlch(44.40, 37.48, 92.00°)
OKLaboklab(52.03% -0.0064 0.0854)
OKLCHoklch(52.03% 0.086 94.3)
XYZxyz(13.2191, 14.1195, 4.0361)
Luminance0.1412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796828 #283979
analogous
#794028 #796828 #627928
triadic
#796828 #287968 #682879
tetradic
#796828 #287940 #283979 #792862
square
#796828 #287940 #283979 #792862
split-complementary
#796828 #286279 #402879
monochromatic
#1D190A #4B4019 #796828 #A79037 #C7AF55

Accessibility & contrast

On white

5.49
#796828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#796828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796828
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796828#FFFFFF#000000##FFFFFF
##7968281.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736621
Deuteranopia (green-blind)
#776B2B
Tritanopia (blue-blind)
#83605A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #796828;
/* rgb */ color: rgb(121, 104, 40);
/* oklch */ color: oklch(52.0% 0.086 94.3);
Tailwind
colors: {
  custom: {
    50: '#a29265',
    500: '#796828',
    950: '#000000',
  },
}
SCSS
$custom: #796828;
$custom-light: #a29265;
$custom-dark: #000000;
JSON
{
  "hex": "#796828",
  "rgb": {
    "r": 121,
    "g": 104,
    "b": 40
  },
  "hsl": {
    "h": 47.407,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52032,
    "c": 0.0856,
    "h": 94.3
  },
  "luminance": 0.14119
}

Semantic roles & 50–950 ramp

primary
#796828
secondary
#5265AB
accent
#6BDA4E
background
#FAF8F6
surface
#F4F0EB
border
#CECBC6
text
#0F0D06
muted
#7F7D7A

Preview Lab

Preview with #796828

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

Preview Lab → · Contrast checker → · Palette generator →

#796828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva