#797928#797928

#797928 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.0% C 0.102 H 109.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#797928
RGBrgb(121, 121, 40)
HSLhsl(60, 50%, 32%)
HSVhsv(60, 67%, 47%)
CMYKcmyk(0%, 0%, 66.9%, 52.5%)
CIE-LABlab(49.37, -10.92, 42.72)
CIE-LCHlch(49.37, 44.09, 104.33°)
OKLaboklab(55.97% -0.0338 0.0965)
OKLCHoklch(55.97% 0.102 109.3)
XYZxyz(15.1060, 17.8933, 4.6651)
Luminance0.1789 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797928 #282879
analogous
#795128 #797928 #517928
triadic
#797928 #287979 #792879
tetradic
#797928 #287951 #282879 #792851
square
#797928 #287951 #282879 #792851
split-complementary
#797928 #285179 #512879
monochromatic
#1D1D0A #4B4B19 #797928 #A7A737 #C7C755

Accessibility & contrast

On white

4.59
#797928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#797928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797928
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797928#FFFFFF#000000##FFFFFF
##7979281.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83741D
Deuteranopia (green-blind)
#84772D
Tritanopia (blue-blind)
#827168
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797928;
/* rgb */ color: rgb(121, 121, 40);
/* oklch */ color: oklch(56.0% 0.102 109.3);
Tailwind
colors: {
  custom: {
    50: '#a29f67',
    500: '#797928',
    950: '#000000',
  },
}
SCSS
$custom: #797928;
$custom-light: #a29f67;
$custom-dark: #000000;
JSON
{
  "hex": "#797928",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55974,
    "c": 0.10223,
    "h": 109.3
  },
  "luminance": 0.17893
}

Semantic roles & 50–950 ramp

primary
#797928
secondary
#5252AB
accent
#4EDA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797928

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

Preview Lab → · Contrast checker → · Palette generator →

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