#797C45#797C45

#797C45 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.077 H 111.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#797C45
RGBrgb(121, 124, 69)
HSLhsl(63, 28%, 38%)
HSVhsv(63, 44%, 49%)
CMYKcmyk(2.4%, 0%, 44.4%, 51.4%)
CIE-LABlab(50.58, -9.96, 29.56)
CIE-LCHlch(50.58, 31.19, 108.61°)
OKLaboklab(57.05% -0.0278 0.0714)
OKLCHoklch(57.05% 0.077 111.3)
XYZxyz(16.1672, 18.9102, 8.4274)
Luminance0.1891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C45 #48457C
analogous
#7C6345 #797C45 #5D7C45
triadic
#797C45 #45797C #7C4579
tetradic
#797C45 #457C63 #48457C #7C455D
square
#797C45 #457C63 #48457C #7C455D
split-complementary
#797C45 #455D7C #63457C
monochromatic
#2C2D19 #53552F #797C45 #9FA35B #B6B982

Accessibility & contrast

On white

4.39
#797C45 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#797C45 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C45
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C45#FFFFFF#000000##000000
##797C451.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#847841
Deuteranopia (green-blind)
#847948
Tritanopia (blue-blind)
#7F766F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c45;
/* rgb */ color: rgb(121, 124, 69);
/* oklch */ color: oklch(57.0% 0.077 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a17a',
    500: '#797c45',
    950: '#000000',
  },
}
SCSS
$custom: #797c45;
$custom-light: #a1a17a;
$custom-dark: #000000;
JSON
{
  "hex": "#797c45",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 69
  },
  "hsl": {
    "h": 63.273,
    "s": 28.497,
    "l": 37.843
  },
  "oklch": {
    "l": 0.5705,
    "c": 0.07661,
    "h": 111.3
  },
  "luminance": 0.1891
}

Semantic roles & 50–950 ramp

primary
#797C45
secondary
#7A78A5
accent
#63C568
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F09
muted
#7F7E7B

Preview Lab

Preview with #797C45

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

Preview Lab → · Contrast checker → · Palette generator →

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