#797E38#797E38

#797E38 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.094 H 112.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#797E38
RGBrgb(121, 126, 56)
HSLhsl(64, 38%, 36%)
HSVhsv(64, 56%, 49%)
CMYKcmyk(4%, 0%, 55.6%, 50.6%)
CIE-LABlab(51.00, -12.39, 36.90)
CIE-LCHlch(51.00, 38.93, 108.56°)
OKLaboklab(57.33% -0.0361 0.0864)
OKLCHoklch(57.33% 0.094 112.7)
XYZxyz(16.0602, 19.2725, 6.6145)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E38 #3D387E
analogous
#7E6038 #797E38 #567E38
triadic
#797E38 #38797E #7E3879
tetradic
#797E38 #387E60 #3D387E #7E3856
square
#797E38 #387E60 #3D387E #7E3856
split-complementary
#797E38 #38567E #60387E
monochromatic
#282912 #505425 #797E38 #A2A84B #BAC071

Accessibility & contrast

On white

4.33
#797E38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#797E38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E38
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E38#FFFFFF#000000##000000
##797E381.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877931
Deuteranopia (green-blind)
#877A3C
Tritanopia (blue-blind)
#80776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e38;
/* rgb */ color: rgb(121, 126, 56);
/* oklch */ color: oklch(57.3% 0.094 112.7);
Tailwind
colors: {
  custom: {
    50: '#a1a371',
    500: '#797e38',
    950: '#000000',
  },
}
SCSS
$custom: #797e38;
$custom-light: #a1a371;
$custom-dark: #000000;
JSON
{
  "hex": "#797e38",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 56
  },
  "hsl": {
    "h": 64.286,
    "s": 38.462,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57333,
    "c": 0.0936,
    "h": 112.7
  },
  "luminance": 0.19272
}

Semantic roles & 50–950 ramp

primary
#797E38
secondary
#6E69A9
accent
#59CE62
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #797E38

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

Preview Lab → · Contrast checker → · Palette generator →

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