#797E1C#797E1C

#797E1C is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.116 H 112.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797E1C
RGBrgb(121, 126, 28)
HSLhsl(63, 64%, 30%)
HSVhsv(63, 78%, 49%)
CMYKcmyk(4%, 0%, 77.8%, 50.6%)
CIE-LABlab(50.77, -14.30, 48.86)
CIE-LCHlch(50.77, 50.91, 106.32°)
OKLaboklab(57.07% -0.0445 0.1073)
OKLCHoklch(57.07% 0.116 112.5)
XYZxyz(15.5561, 19.0709, 3.9600)
Luminance0.1907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E1C #211C7E
analogous
#7E521C #797E1C #487E1C
triadic
#797E1C #1C797E #7E1C79
tetradic
#797E1C #1C7E52 #211C7E #7E1C48
square
#797E1C #1C7E52 #211C7E #7E1C48
split-complementary
#797E1C #1C487E #521C7E
monochromatic
#191A06 #494C11 #797E1C #A9B027 #CDD540

Accessibility & contrast

On white

4.36
#797E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#797E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E1C
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E1C#FFFFFF#000000##000000
##797E1C1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887805
Deuteranopia (green-blind)
#887A24
Tritanopia (blue-blind)
#82766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e1c;
/* rgb */ color: rgb(121, 126, 28);
/* oklch */ color: oklch(57.1% 0.116 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a361',
    500: '#797e1c',
    950: '#000000',
  },
}
SCSS
$custom: #797e1c;
$custom-light: #a3a361;
$custom-dark: #000000;
JSON
{
  "hex": "#797e1c",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 63.061,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5707,
    "c": 0.11612,
    "h": 112.5
  },
  "luminance": 0.1907
}

Semantic roles & 50–950 ramp

primary
#797E1C
secondary
#4A44B2
accent
#41E74A
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #797E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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