#797E1F#797E1F

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

Color values

HEX#797E1F
RGBrgb(121, 126, 31)
HSLhsl(63, 61%, 31%)
HSVhsv(63, 75%, 49%)
CMYKcmyk(4%, 0%, 75.4%, 50.6%)
CIE-LABlab(50.79, -14.16, 47.80)
CIE-LCHlch(50.79, 49.85, 106.50°)
OKLaboklab(57.09% -0.0438 0.1056)
OKLCHoklch(57.09% 0.114 112.5)
XYZxyz(15.5938, 19.0859, 4.1586)
Luminance0.1909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E1F #241F7E
analogous
#7E531F #797E1F #497E1F
triadic
#797E1F #1F797E #7E1F79
tetradic
#797E1F #1F7E53 #241F7E #7E1F49
square
#797E1F #1F7E53 #241F7E #7E1F49
split-complementary
#797E1F #1F497E #531F7E
monochromatic
#1B1C07 #4A4D13 #797E1F #A8AF2B #CAD146

Accessibility & contrast

On white

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

On black

4.82
#797E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E1F
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E1F#FFFFFF#000000##000000
##797E1F1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797e1f;
/* rgb */ color: rgb(121, 126, 31);
/* oklch */ color: oklch(57.1% 0.114 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a362',
    500: '#797e1f',
    950: '#000000',
  },
}
SCSS
$custom: #797e1f;
$custom-light: #a3a362;
$custom-dark: #000000;
JSON
{
  "hex": "#797e1f",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 63.158,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5709,
    "c": 0.11431,
    "h": 112.5
  },
  "luminance": 0.19086
}

Semantic roles & 50–950 ramp

primary
#797E1F
secondary
#4D48B1
accent
#44E44D
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #797E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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