#797C28#797C28

#797C28 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.106 H 111.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#797C28
RGBrgb(121, 124, 40)
HSLhsl(62, 51%, 32%)
HSVhsv(62, 68%, 49%)
CMYKcmyk(2.4%, 0%, 67.7%, 51.4%)
CIE-LABlab(50.26, -12.55, 43.64)
CIE-LCHlch(50.26, 45.41, 106.05°)
OKLaboklab(56.68% -0.0384 0.0984)
OKLCHoklch(56.68% 0.106 111.3)
XYZxyz(15.4763, 18.6338, 4.7885)
Luminance0.1863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C28 #2B287C
analogous
#7C5528 #797C28 #4F7C28
triadic
#797C28 #28797C #7C2879
tetradic
#797C28 #287C55 #2B287C #7C284F
square
#797C28 #287C55 #2B287C #7C284F
split-complementary
#797C28 #284F7C #55287C
monochromatic
#1F1F0A #4C4E19 #797C28 #A6AA37 #C4C856

Accessibility & contrast

On white

4.44
#797C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#797C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C28
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C28#FFFFFF#000000##000000
##797C281.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#86761C
Deuteranopia (green-blind)
#86792E
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c28;
/* rgb */ color: rgb(121, 124, 40);
/* oklch */ color: oklch(56.7% 0.106 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a167',
    500: '#797c28',
    950: '#000000',
  },
}
SCSS
$custom: #797c28;
$custom-light: #a2a167;
$custom-dark: #000000;
JSON
{
  "hex": "#797c28",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 40
  },
  "hsl": {
    "h": 62.143,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56685,
    "c": 0.10565,
    "h": 111.3
  },
  "luminance": 0.18633
}

Semantic roles & 50–950 ramp

primary
#797C28
secondary
#5652AD
accent
#4DDB52
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797C28

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

Preview Lab → · Contrast checker → · Palette generator →

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