#797B28#797B28

#797B28 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.4% C 0.104 H 110.7°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#797B28
RGBrgb(121, 123, 40)
HSLhsl(61, 51%, 32%)
HSVhsv(61, 67%, 48%)
CMYKcmyk(1.6%, 0%, 67.5%, 51.8%)
CIE-LABlab(49.96, -12.01, 43.33)
CIE-LCHlch(49.96, 44.97, 105.49°)
OKLaboklab(56.45% -0.0369 0.0978)
OKLCHoklch(56.45% 0.105 110.7)
XYZxyz(15.3516, 18.3845, 4.7469)
Luminance0.1838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B28 #2A287B
analogous
#7B5428 #797B28 #507B28
triadic
#797B28 #28797B #7B2879
tetradic
#797B28 #287B54 #2A287B #7B2850
square
#797B28 #287B54 #2A287B #7B2850
split-complementary
#797B28 #28507B #54287B
monochromatic
#1E1F0A #4C4D19 #797B28 #A6A937 #C5C856

Accessibility & contrast

On white

4.49
#797B28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#797B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B28
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B28#FFFFFF#000000##000000
##797B281.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#85761D
Deuteranopia (green-blind)
#85782E
Tritanopia (blue-blind)
#81736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b28;
/* rgb */ color: rgb(121, 123, 40);
/* oklch */ color: oklch(56.4% 0.104 110.7);
Tailwind
colors: {
  custom: {
    50: '#a2a167',
    500: '#797b28',
    950: '#000000',
  },
}
SCSS
$custom: #797b28;
$custom-light: #a2a167;
$custom-dark: #000000;
JSON
{
  "hex": "#797b28",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 40
  },
  "hsl": {
    "h": 61.446,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56448,
    "c": 0.1045,
    "h": 110.7
  },
  "luminance": 0.18384
}

Semantic roles & 50–950 ramp

primary
#797B28
secondary
#5452AD
accent
#4DDA51
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B28

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

Preview Lab → · Contrast checker → · Palette generator →

#797B28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva