#797F45#797F45

#797F45 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.081 H 113.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#797F45
RGBrgb(121, 127, 69)
HSLhsl(66, 30%, 38%)
HSVhsv(66, 46%, 50%)
CMYKcmyk(4.7%, 0%, 45.7%, 50.2%)
CIE-LABlab(51.47, -11.60, 30.66)
CIE-LCHlch(51.47, 32.78, 110.73°)
OKLaboklab(57.76% -0.0325 0.0738)
OKLCHoklch(57.76% 0.081 113.8)
XYZxyz(16.5489, 19.6736, 8.5547)
Luminance0.1967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F45 #4B457F
analogous
#7F6845 #797F45 #5C7F45
triadic
#797F45 #45797F #7F4579
tetradic
#797F45 #457F68 #4B457F #7F455C
square
#797F45 #457F68 #4B457F #7F455C
split-complementary
#797F45 #455C7F #68457F
monochromatic
#2D301A #53572F #797F45 #9EA65B #B6BC83

Accessibility & contrast

On white

4.26
#797F45 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#797F45 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F45
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F45#FFFFFF#000000##000000
##797F451.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867A40
Deuteranopia (green-blind)
#867B48
Tritanopia (blue-blind)
#7F7971
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #797f45;
/* rgb */ color: rgb(121, 127, 69);
/* oklch */ color: oklch(57.8% 0.081 113.8);
Tailwind
colors: {
  custom: {
    50: '#a1a47a',
    500: '#797f45',
    950: '#000000',
  },
}
SCSS
$custom: #797f45;
$custom-light: #a1a47a;
$custom-dark: #000000;
JSON
{
  "hex": "#797f45",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 69
  },
  "hsl": {
    "h": 66.207,
    "s": 29.592,
    "l": 38.431
  },
  "oklch": {
    "l": 0.57755,
    "c": 0.08068,
    "h": 113.8
  },
  "luminance": 0.19673
}

Semantic roles & 50–950 ramp

primary
#797F45
secondary
#7E79A7
accent
#62C66C
background
#FAFAF7
surface
#F3F4ED
border
#CDCEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #797F45

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

Preview Lab → · Contrast checker → · Palette generator →

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