#797B1E#797B1E

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

Color values

HEX#797B1E
RGBrgb(121, 123, 30)
HSLhsl(61, 61%, 30%)
HSVhsv(61, 76%, 48%)
CMYKcmyk(1.6%, 0%, 75.6%, 51.8%)
CIE-LABlab(49.89, -12.58, 47.31)
CIE-LCHlch(49.89, 48.96, 104.90°)
OKLaboklab(56.37% -0.0395 0.1044)
OKLCHoklch(56.37% 0.112 110.7)
XYZxyz(15.2030, 18.3250, 3.9643)
Luminance0.1832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B1E #201E7B
analogous
#7B4E1E #797B1E #4B7B1E
triadic
#797B1E #1E797B #7B1E79
tetradic
#797B1E #1E7B4E #201E7B #7B1E4B
square
#797B1E #1E7B4E #201E7B #7B1E4B
split-complementary
#797B1E #1E4B7B #4E1E7B
monochromatic
#181906 #494A12 #797B1E #A9AC2A #CED142

Accessibility & contrast

On white

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

On black

4.67
#797B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B1E
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B1E#FFFFFF#000000##000000
##797B1E1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797b1e;
/* rgb */ color: rgb(121, 123, 30);
/* oklch */ color: oklch(56.4% 0.112 110.7);
Tailwind
colors: {
  custom: {
    50: '#a3a161',
    500: '#797b1e',
    950: '#000000',
  },
}
SCSS
$custom: #797b1e;
$custom-light: #a3a161;
$custom-dark: #000000;
JSON
{
  "hex": "#797b1e",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 30
  },
  "hsl": {
    "h": 61.29,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.56368,
    "c": 0.11161,
    "h": 110.7
  },
  "luminance": 0.18325
}

Semantic roles & 50–950 ramp

primary
#797B1E
secondary
#4946AE
accent
#44E447
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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