#797B45#797B45

#797B45 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.075 H 110.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#797B45
RGBrgb(121, 123, 69)
HSLhsl(62, 28%, 38%)
HSVhsv(62, 44%, 48%)
CMYKcmyk(1.6%, 0%, 43.9%, 51.8%)
CIE-LABlab(50.29, -9.40, 29.20)
CIE-LCHlch(50.29, 30.67, 107.85°)
OKLaboklab(56.82% -0.0263 0.0706)
OKLCHoklch(56.82% 0.075 110.4)
XYZxyz(16.0425, 18.6608, 8.3859)
Luminance0.1866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B45 #47457B
analogous
#7B6245 #797B45 #5E7B45
triadic
#797B45 #45797B #7B4579
tetradic
#797B45 #457B62 #47457B #7B455E
square
#797B45 #457B62 #47457B #7B455E
split-complementary
#797B45 #455E7B #62457B
monochromatic
#2C2D19 #52542F #797B45 #A0A25B #B7B982

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797B45#FFFFFF#000000##000000
##797B451.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)
#837741
Deuteranopia (green-blind)
#837948
Tritanopia (blue-blind)
#80756E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797b45;
/* rgb */ color: rgb(121, 123, 69);
/* oklch */ color: oklch(56.8% 0.075 110.4);
Tailwind
colors: {
  custom: {
    50: '#a1a17a',
    500: '#797b45',
    950: '#000000',
  },
}
SCSS
$custom: #797b45;
$custom-light: #a1a17a;
$custom-dark: #000000;
JSON
{
  "hex": "#797b45",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 69
  },
  "hsl": {
    "h": 62.222,
    "s": 28.125,
    "l": 37.647
  },
  "oklch": {
    "l": 0.56816,
    "c": 0.07528,
    "h": 110.4
  },
  "luminance": 0.18661
}

Semantic roles & 50–950 ramp

primary
#797B45
secondary
#7978A4
accent
#63C467
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797B45

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

Preview Lab → · Contrast checker → · Palette generator →

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