#797C2D#797C2D

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

Color values

HEX#797C2D
RGBrgb(121, 124, 45)
HSLhsl(62, 47%, 33%)
HSVhsv(62, 64%, 49%)
CMYKcmyk(2.4%, 0%, 63.7%, 51.4%)
CIE-LABlab(50.30, -12.21, 41.44)
CIE-LCHlch(50.30, 43.20, 106.41°)
OKLaboklab(56.73% -0.0368 0.0946)
OKLCHoklch(56.73% 0.102 111.3)
XYZxyz(15.5669, 18.6701, 5.2658)
Luminance0.1867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C2D #302D7C
analogous
#7C572D #797C2D #517C2D
triadic
#797C2D #2D797C #7C2D79
tetradic
#797C2D #2D7C57 #302D7C #7C2D51
square
#797C2D #2D7C57 #302D7C #7C2D51
split-complementary
#797C2D #2D517C #572D7C
monochromatic
#21220C #4D4F1D #797C2D #A5A93D #C1C55F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797C2D#FFFFFF#000000##000000
##797C2D1.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)
#857723
Deuteranopia (green-blind)
#867932
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c2d;
/* rgb */ color: rgb(121, 124, 45);
/* oklch */ color: oklch(56.7% 0.102 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a16a',
    500: '#797c2d',
    950: '#000000',
  },
}
SCSS
$custom: #797c2d;
$custom-light: #a2a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#797c2d",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 45
  },
  "hsl": {
    "h": 62.278,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56733,
    "c": 0.10151,
    "h": 111.3
  },
  "luminance": 0.1867
}

Semantic roles & 50–950 ramp

primary
#797C2D
secondary
#5D5AAB
accent
#51D656
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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