#797C1E#797C1E

#797C1E is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.113 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797C1E
RGBrgb(121, 124, 30)
HSLhsl(62, 61%, 30%)
HSVhsv(62, 76%, 49%)
CMYKcmyk(2.4%, 0%, 75.8%, 51.4%)
CIE-LABlab(50.19, -13.13, 47.59)
CIE-LCHlch(50.19, 49.37, 105.42°)
OKLaboklab(56.61% -0.041 0.105)
OKLCHoklch(56.61% 0.113 111.4)
XYZxyz(15.3277, 18.5744, 4.0058)
Luminance0.1857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C1E #211E7C
analogous
#7C501E #797C1E #4A7C1E
triadic
#797C1E #1E797C #7C1E79
tetradic
#797C1E #1E7C50 #211E7C #7C1E4A
square
#797C1E #1E7C50 #211E7C #7C1E4A
split-complementary
#797C1E #1E4A7C #501E7C
monochromatic
#191906 #494B12 #797C1E #A9AD2A #CDD143

Accessibility & contrast

On white

4.45
#797C1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797C1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C1E
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C1E#FFFFFF#000000##000000
##797C1E1.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#86760B
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c1e;
/* rgb */ color: rgb(121, 124, 30);
/* oklch */ color: oklch(56.6% 0.113 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a162',
    500: '#797c1e',
    950: '#000000',
  },
}
SCSS
$custom: #797c1e;
$custom-light: #a3a162;
$custom-dark: #000000;
JSON
{
  "hex": "#797c1e",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 30
  },
  "hsl": {
    "h": 61.915,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56606,
    "c": 0.1127,
    "h": 111.4
  },
  "luminance": 0.18574
}

Semantic roles & 50–950 ramp

primary
#797C1E
secondary
#4A46AF
accent
#44E449
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #797C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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