#797D45#797D45

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

Color values

HEX#797D45
RGBrgb(121, 125, 69)
HSLhsl(64, 29%, 38%)
HSVhsv(64, 45%, 49%)
CMYKcmyk(3.2%, 0%, 44.8%, 51%)
CIE-LABlab(50.88, -10.51, 29.93)
CIE-LCHlch(50.88, 31.72, 109.34°)
OKLaboklab(57.29% -0.0294 0.0722)
OKLCHoklch(57.29% 0.078 112.2)
XYZxyz(16.2932, 19.1621, 8.4694)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D45 #49457D
analogous
#7D6545 #797D45 #5D7D45
triadic
#797D45 #45797D #7D4579
tetradic
#797D45 #457D65 #49457D #7D455D
square
#797D45 #457D65 #49457D #7D455D
split-complementary
#797D45 #455D7D #65457D
monochromatic
#2D2E19 #53562F #797D45 #9FA45B #B6BA82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797D45#FFFFFF#000000##000000
##797D451.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)
#857840
Deuteranopia (green-blind)
#857A48
Tritanopia (blue-blind)
#7F7770
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797d45;
/* rgb */ color: rgb(121, 125, 69);
/* oklch */ color: oklch(57.3% 0.078 112.2);
Tailwind
colors: {
  custom: {
    50: '#a1a27a',
    500: '#797d45',
    950: '#000000',
  },
}
SCSS
$custom: #797d45;
$custom-light: #a1a27a;
$custom-dark: #000000;
JSON
{
  "hex": "#797d45",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 69
  },
  "hsl": {
    "h": 64.286,
    "s": 28.866,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57285,
    "c": 0.07795,
    "h": 112.2
  },
  "luminance": 0.19162
}

Semantic roles & 50–950 ramp

primary
#797D45
secondary
#7B78A6
accent
#63C56A
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F09
muted
#7F7E7B

Preview Lab

Preview with #797D45

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

Preview Lab → · Contrast checker → · Palette generator →

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