#797E28#797E28

#797E28 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.2% C 0.108 H 112.6°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#797E28
RGBrgb(121, 126, 40)
HSLhsl(63, 52%, 33%)
HSVhsv(63, 68%, 49%)
CMYKcmyk(4%, 0%, 68.3%, 50.6%)
CIE-LABlab(50.85, -13.64, 44.25)
CIE-LCHlch(50.85, 46.31, 107.13°)
OKLaboklab(57.16% -0.0414 0.0997)
OKLCHoklch(57.16% 0.108 112.6)
XYZxyz(15.7295, 19.1402, 4.8729)
Luminance0.1914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E28 #2D287E
analogous
#7E5828 #797E28 #4E7E28
triadic
#797E28 #28797E #7E2879
tetradic
#797E28 #287E58 #2D287E #7E284E
square
#797E28 #287E58 #2D287E #7E284E
split-complementary
#797E28 #284E7E #58287E
monochromatic
#20210B #4C5019 #797E28 #A6AC37 #C3CA57

Accessibility & contrast

On white

4.35
#797E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#797E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E28
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E28#FFFFFF#000000##000000
##797E281.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#88781C
Deuteranopia (green-blind)
#887A2E
Tritanopia (blue-blind)
#81766D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e28;
/* rgb */ color: rgb(121, 126, 40);
/* oklch */ color: oklch(57.2% 0.108 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a367',
    500: '#797e28',
    950: '#000000',
  },
}
SCSS
$custom: #797e28;
$custom-light: #a2a367;
$custom-dark: #000000;
JSON
{
  "hex": "#797e28",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 63.488,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57161,
    "c": 0.10798,
    "h": 112.6
  },
  "luminance": 0.1914
}

Semantic roles & 50–950 ramp

primary
#797E28
secondary
#5853AF
accent
#4DDB55
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797E28

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

Preview Lab → · Contrast checker → · Palette generator →

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