#797B1B#797B1B

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

Color values

HEX#797B1B
RGBrgb(121, 123, 27)
HSLhsl(61, 64%, 29%)
HSVhsv(61, 78%, 48%)
CMYKcmyk(1.6%, 0%, 78%, 51.8%)
CIE-LABlab(49.87, -12.73, 48.37)
CIE-LCHlch(49.87, 50.02, 104.74°)
OKLaboklab(56.35% -0.0402 0.106)
OKLCHoklch(56.35% 0.113 110.8)
XYZxyz(15.1665, 18.3104, 3.7720)
Luminance0.1831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B1B #1D1B7B
analogous
#7B4D1B #797B1B #497B1B
triadic
#797B1B #1B797B #7B1B79
tetradic
#797B1B #1B7B4D #1D1B7B #7B1B49
square
#797B1B #1B7B4D #1D1B7B #7B1B49
split-complementary
#797B1B #1B497B #4D1B7B
monochromatic
#191906 #484910 #797B1B #AAAD26 #D1D43C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797B1B#FFFFFF#000000##000000
##797B1B1.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)
#857504
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b1b;
/* rgb */ color: rgb(121, 123, 27);
/* oklch */ color: oklch(56.3% 0.113 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a160',
    500: '#797b1b',
    950: '#000000',
  },
}
SCSS
$custom: #797b1b;
$custom-light: #a3a160;
$custom-dark: #000000;
JSON
{
  "hex": "#797b1b",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 27
  },
  "hsl": {
    "h": 61.25,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56348,
    "c": 0.1134,
    "h": 110.8
  },
  "luminance": 0.1831
}

Semantic roles & 50–950 ramp

primary
#797B1B
secondary
#4543AF
accent
#41E744
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #797B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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