#797B1F#797B1F

#797B1F is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.111 H 110.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#797B1F
RGBrgb(121, 123, 31)
HSLhsl(61, 60%, 30%)
HSVhsv(61, 75%, 48%)
CMYKcmyk(1.6%, 0%, 74.8%, 51.8%)
CIE-LABlab(49.89, -12.53, 46.94)
CIE-LCHlch(49.89, 48.59, 104.95°)
OKLaboklab(56.38% -0.0393 0.1038)
OKLCHoklch(56.38% 0.111 110.7)
XYZxyz(15.2160, 18.3302, 4.0326)
Luminance0.1833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B1F #211F7B
analogous
#7B4F1F #797B1F #4B7B1F
triadic
#797B1F #1F797B #7B1F79
tetradic
#797B1F #1F7B4F #211F7B #7B1F4B
square
#797B1F #1F7B4F #211F7B #7B1F4B
split-complementary
#797B1F #1F4B7B #4F1F7B
monochromatic
#191906 #494A13 #797B1F #A9AC2B #CDD044

Accessibility & contrast

On white

4.50
#797B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#797B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B1F
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B1F#FFFFFF#000000##000000
##797B1F1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750D
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b1f;
/* rgb */ color: rgb(121, 123, 31);
/* oklch */ color: oklch(56.4% 0.111 110.7);
Tailwind
colors: {
  custom: {
    50: '#a3a162',
    500: '#797b1f',
    950: '#000000',
  },
}
SCSS
$custom: #797b1f;
$custom-light: #a3a162;
$custom-dark: #000000;
JSON
{
  "hex": "#797b1f",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 61.304,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56375,
    "c": 0.11097,
    "h": 110.7
  },
  "luminance": 0.1833
}

Semantic roles & 50–950 ramp

primary
#797B1F
secondary
#4A48AE
accent
#45E348
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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