#797B1D#797B1D

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

Color values

HEX#797B1D
RGBrgb(121, 123, 29)
HSLhsl(61, 62%, 30%)
HSVhsv(61, 76%, 48%)
CMYKcmyk(1.6%, 0%, 76.4%, 51.8%)
CIE-LABlab(49.88, -12.63, 47.67)
CIE-LCHlch(49.88, 49.32, 104.84°)
OKLaboklab(56.36% -0.0398 0.1049)
OKLCHoklch(56.36% 0.112 110.8)
XYZxyz(15.1904, 18.3200, 3.8981)
Luminance0.1832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B1D #1F1D7B
analogous
#7B4E1D #797B1D #4A7B1D
triadic
#797B1D #1D797B #7B1D79
tetradic
#797B1D #1D7B4E #1F1D7B #7B1D4A
square
#797B1D #1D7B4E #1F1D7B #7B1D4A
split-complementary
#797B1D #1D4A7B #4E1D7B
monochromatic
#181906 #484911 #797B1D #AAAD29 #CFD240

Accessibility & contrast

On white

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

On black

4.66
#797B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B1D
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B1D#FFFFFF#000000##000000
##797B1D1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857509
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b1d;
/* rgb */ color: rgb(121, 123, 29);
/* oklch */ color: oklch(56.4% 0.112 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a161',
    500: '#797b1d',
    950: '#000000',
  },
}
SCSS
$custom: #797b1d;
$custom-light: #a3a161;
$custom-dark: #000000;
JSON
{
  "hex": "#797b1d",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 29
  },
  "hsl": {
    "h": 61.277,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56361,
    "c": 0.11222,
    "h": 110.8
  },
  "luminance": 0.1832
}

Semantic roles & 50–950 ramp

primary
#797B1D
secondary
#4745AF
accent
#43E546
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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