#797B19#797B19

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

Color values

HEX#797B19
RGBrgb(121, 123, 25)
HSLhsl(61, 66%, 29%)
HSVhsv(61, 80%, 48%)
CMYKcmyk(1.6%, 0%, 79.7%, 51.8%)
CIE-LABlab(49.86, -12.81, 49.04)
CIE-LCHlch(49.86, 50.69, 104.64°)
OKLaboklab(56.34% -0.0406 0.1071)
OKLCHoklch(56.34% 0.115 110.8)
XYZxyz(15.1441, 18.3015, 3.6543)
Luminance0.1830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B19 #1B197B
analogous
#7B4C19 #797B19 #487B19
triadic
#797B19 #19797B #7B1979
tetradic
#797B19 #197B4C #1B197B #7B1948
square
#797B19 #197B4C #1B197B #7B1948
split-complementary
#797B19 #19487B #4C197B
monochromatic
#191905 #47480F #797B19 #ABAE23 #D3D738

Accessibility & contrast

On white

4.51
#797B19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797B19#FFFFFF#000000##000000
##797B191.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797b19;
/* rgb */ color: rgb(121, 123, 25);
/* oklch */ color: oklch(56.3% 0.115 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a15f',
    500: '#797b19',
    950: '#000000',
  },
}
SCSS
$custom: #797b19;
$custom-light: #a3a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#797b19",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 25
  },
  "hsl": {
    "h": 61.224,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56336,
    "c": 0.11451,
    "h": 110.8
  },
  "luminance": 0.18301
}

Semantic roles & 50–950 ramp

primary
#797B19
secondary
#4340AF
accent
#3FE942
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #797B19

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

Preview Lab → · Contrast checker → · Palette generator →

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