#797C1F#797C1F

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

Color values

HEX#797C1F
RGBrgb(121, 124, 31)
HSLhsl(62, 60%, 30%)
HSVhsv(62, 75%, 49%)
CMYKcmyk(2.4%, 0%, 75%, 51.4%)
CIE-LABlab(50.19, -13.08, 47.23)
CIE-LCHlch(50.19, 49.01, 105.48°)
OKLaboklab(56.61% -0.0408 0.1044)
OKLCHoklch(56.61% 0.112 111.3)
XYZxyz(15.3406, 18.5796, 4.0742)
Luminance0.1858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C1F #221F7C
analogous
#7C501F #797C1F #4B7C1F
triadic
#797C1F #1F797C #7C1F79
tetradic
#797C1F #1F7C50 #221F7C #7C1F4B
square
#797C1F #1F7C50 #221F7C #7C1F4B
split-complementary
#797C1F #1F4B7C #501F7C
monochromatic
#191A07 #494B13 #797C1F #A9AD2B #CCD045

Accessibility & contrast

On white

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

On black

4.72
#797C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C1F
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C1F#FFFFFF#000000##000000
##797C1F1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797c1f;
/* rgb */ color: rgb(121, 124, 31);
/* oklch */ color: oklch(56.6% 0.112 111.3);
Tailwind
colors: {
  custom: {
    50: '#a3a162',
    500: '#797c1f',
    950: '#000000',
  },
}
SCSS
$custom: #797c1f;
$custom-light: #a3a162;
$custom-dark: #000000;
JSON
{
  "hex": "#797c1f",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 61.935,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56613,
    "c": 0.11207,
    "h": 111.3
  },
  "luminance": 0.18579
}

Semantic roles & 50–950 ramp

primary
#797C1F
secondary
#4B48AF
accent
#45E34A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #797C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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