#797828#797828

#797828 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.7% C 0.101 H 108.6°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#797828
RGBrgb(121, 120, 40)
HSLhsl(59, 50%, 32%)
HSVhsv(59, 67%, 47%)
CMYKcmyk(0%, 0.8%, 66.9%, 52.5%)
CIE-LABlab(49.07, -10.37, 42.41)
CIE-LCHlch(49.07, 43.66, 103.73°)
OKLaboklab(55.74% -0.0322 0.0958)
OKLCHoklch(55.74% 0.101 108.6)
XYZxyz(14.9851, 17.6515, 4.6248)
Luminance0.1765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797828 #282979
analogous
#795028 #797828 #527928
triadic
#797828 #287978 #782879
tetradic
#797828 #287950 #282979 #792852
square
#797828 #287950 #282979 #792852
split-complementary
#797828 #285279 #502879
monochromatic
#1D1D0A #4B4A19 #797828 #A7A637 #C7C555

Accessibility & contrast

On white

4.64
#797828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#797828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797828
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797828#FFFFFF#000000##FFFFFF
##7978281.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731D
Deuteranopia (green-blind)
#83762D
Tritanopia (blue-blind)
#827068
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797828;
/* rgb */ color: rgb(121, 120, 40);
/* oklch */ color: oklch(55.7% 0.101 108.6);
Tailwind
colors: {
  custom: {
    50: '#a29e67',
    500: '#797828',
    950: '#000000',
  },
}
SCSS
$custom: #797828;
$custom-light: #a29e67;
$custom-dark: #000000;
JSON
{
  "hex": "#797828",
  "rgb": {
    "r": 121,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 59.259,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55738,
    "c": 0.10111,
    "h": 108.6
  },
  "luminance": 0.17651
}

Semantic roles & 50–950 ramp

primary
#797828
secondary
#5253AB
accent
#50DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797828

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

Preview Lab → · Contrast checker → · Palette generator →

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