#797E2D#797E2D

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

Color values

HEX#797E2D
RGBrgb(121, 126, 45)
HSLhsl(64, 47%, 34%)
HSVhsv(64, 64%, 49%)
CMYKcmyk(4%, 0%, 64.3%, 50.6%)
CIE-LABlab(50.89, -13.29, 42.08)
CIE-LCHlch(50.89, 44.13, 107.53°)
OKLaboklab(57.21% -0.0399 0.0959)
OKLCHoklch(57.21% 0.104 112.6)
XYZxyz(15.8201, 19.1764, 5.3502)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E2D #322D7E
analogous
#7E5A2D #797E2D #507E2D
triadic
#797E2D #2D797E #7E2D79
tetradic
#797E2D #2D7E5A #322D7E #7E2D50
square
#797E2D #2D7E5A #322D7E #7E2D50
split-complementary
#797E2D #2D507E #5A2D7E
monochromatic
#22240D #4E511D #797E2D #A4AB3D #C0C65F

Accessibility & contrast

On white

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

On black

4.84
#797E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E2D
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E2D#FFFFFF#000000##000000
##797E2D1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797e2d;
/* rgb */ color: rgb(121, 126, 45);
/* oklch */ color: oklch(57.2% 0.104 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a36a',
    500: '#797e2d',
    950: '#000000',
  },
}
SCSS
$custom: #797e2d;
$custom-light: #a2a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#797e2d",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 45
  },
  "hsl": {
    "h": 63.704,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57208,
    "c": 0.10391,
    "h": 112.6
  },
  "luminance": 0.19176
}

Semantic roles & 50–950 ramp

primary
#797E2D
secondary
#5F5AAC
accent
#51D759
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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