#797B1C#797B1C

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

Color values

HEX#797B1C
RGBrgb(121, 123, 28)
HSLhsl(61, 63%, 30%)
HSVhsv(61, 77%, 48%)
CMYKcmyk(1.6%, 0%, 77.2%, 51.8%)
CIE-LABlab(49.88, -12.68, 48.03)
CIE-LCHlch(49.88, 49.67, 104.79°)
OKLaboklab(56.36% -0.04 0.1055)
OKLCHoklch(56.36% 0.113 110.8)
XYZxyz(15.1782, 18.3151, 3.8340)
Luminance0.1832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B1C #1E1C7B
analogous
#7B4E1C #797B1C #4A7B1C
triadic
#797B1C #1C797B #7B1C79
tetradic
#797B1C #1C7B4E #1E1C7B #7B1C4A
square
#797B1C #1C7B4E #1E1C7B #7B1C4A
split-complementary
#797B1C #1C4A7B #4E1C7B
monochromatic
#191906 #484911 #797B1C #AAAD27 #D0D33E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797B1C#FFFFFF#000000##000000
##797B1C1.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)
#857506
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b1c;
/* rgb */ color: rgb(121, 123, 28);
/* oklch */ color: oklch(56.4% 0.113 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a160',
    500: '#797b1c',
    950: '#000000',
  },
}
SCSS
$custom: #797b1c;
$custom-light: #a3a160;
$custom-dark: #000000;
JSON
{
  "hex": "#797b1c",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 61.263,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56355,
    "c": 0.11282,
    "h": 110.8
  },
  "luminance": 0.18315
}

Semantic roles & 50–950 ramp

primary
#797B1C
secondary
#4644AF
accent
#42E645
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #797B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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