#797A1B#797A1B

#797A1B is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.1% C 0.112 H 110.1°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#797A1B
RGBrgb(121, 122, 27)
HSLhsl(61, 64%, 29%)
HSVhsv(61, 78%, 48%)
CMYKcmyk(0.8%, 0%, 77.9%, 52.2%)
CIE-LABlab(49.57, -12.18, 48.10)
CIE-LCHlch(49.57, 49.62, 104.21°)
OKLaboklab(56.11% -0.0387 0.1055)
OKLCHoklch(56.11% 0.112 110.1)
XYZxyz(15.0431, 18.0636, 3.7309)
Luminance0.1806 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A1B #1C1B7A
analogous
#7A4C1B #797A1B #4A7A1B
triadic
#797A1B #1B797A #7A1B79
tetradic
#797A1B #1B7A4C #1C1B7A #7A1B4A
square
#797A1B #1B7A4C #1C1B7A #7A1B4A
split-complementary
#797A1B #1B4A7A #4C1B7A
monochromatic
#191906 #474810 #797A1B #ABAC26 #D2D43C

Accessibility & contrast

On white

4.55
#797A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#797A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A1B
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A1B#FFFFFF#000000##000000
##797A1B1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847405
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#827268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a1b;
/* rgb */ color: rgb(121, 122, 27);
/* oklch */ color: oklch(56.1% 0.112 110.1);
Tailwind
colors: {
  custom: {
    50: '#a3a060',
    500: '#797a1b',
    950: '#000000',
  },
}
SCSS
$custom: #797a1b;
$custom-light: #a3a060;
$custom-dark: #000000;
JSON
{
  "hex": "#797a1b",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 60.632,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56111,
    "c": 0.11232,
    "h": 110.1
  },
  "luminance": 0.18063
}

Semantic roles & 50–950 ramp

primary
#797A1B
secondary
#4443AE
accent
#41E743
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #797A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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