#797E2C#797E2C

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

Color values

HEX#797E2C
RGBrgb(121, 126, 44)
HSLhsl(64, 48%, 33%)
HSVhsv(64, 65%, 49%)
CMYKcmyk(4%, 0%, 65.1%, 50.6%)
CIE-LABlab(50.88, -13.37, 42.52)
CIE-LCHlch(50.88, 44.57, 107.45°)
OKLaboklab(57.2% -0.0402 0.0967)
OKLCHoklch(57.2% 0.105 112.6)
XYZxyz(15.8011, 19.1688, 5.2500)
Luminance0.1917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E2C #312C7E
analogous
#7E5A2C #797E2C #507E2C
triadic
#797E2C #2C797E #7E2C79
tetradic
#797E2C #2C7E5A #312C7E #7E2C50
square
#797E2C #2C7E5A #312C7E #7E2C50
split-complementary
#797E2C #2C507E #5A2C7E
monochromatic
#22230C #4D511C #797E2C #A5AB3C #C0C75E

Accessibility & contrast

On white

4.34
#797E2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797E2C#FFFFFF#000000##000000
##797E2C1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877822
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e2c;
/* rgb */ color: rgb(121, 126, 44);
/* oklch */ color: oklch(57.2% 0.105 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a369',
    500: '#797e2c',
    950: '#000000',
  },
}
SCSS
$custom: #797e2c;
$custom-light: #a2a369;
$custom-dark: #000000;
JSON
{
  "hex": "#797e2c",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 44
  },
  "hsl": {
    "h": 63.659,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57198,
    "c": 0.10475,
    "h": 112.6
  },
  "luminance": 0.19169
}

Semantic roles & 50–950 ramp

primary
#797E2C
secondary
#5E59AD
accent
#50D858
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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