#797A1E#797A1E

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

Color values

HEX#797A1E
RGBrgb(121, 122, 30)
HSLhsl(61, 61%, 30%)
HSVhsv(61, 75%, 48%)
CMYKcmyk(0.8%, 0%, 75.4%, 52.2%)
CIE-LABlab(49.59, -12.04, 47.03)
CIE-LCHlch(49.59, 48.55, 104.36°)
OKLaboklab(56.13% -0.038 0.1038)
OKLCHoklch(56.13% 0.111 110.1)
XYZxyz(15.0796, 18.0782, 3.9231)
Luminance0.1808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A1E #1F1E7A
analogous
#7A4D1E #797A1E #4B7A1E
triadic
#797A1E #1E797A #7A1E79
tetradic
#797A1E #1E7A4D #1F1E7A #7A1E4B
square
#797A1E #1E7A4D #1F1E7A #7A1E4B
split-complementary
#797A1E #1E4B7A #4D1E7A
monochromatic
#181906 #484912 #797A1E #AAAB2A #CFD042

Accessibility & contrast

On white

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

On black

4.62
#797A1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A1E
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A1E#FFFFFF#000000##000000
##797A1E1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#84740C
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#827268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a1e;
/* rgb */ color: rgb(121, 122, 30);
/* oklch */ color: oklch(56.1% 0.111 110.1);
Tailwind
colors: {
  custom: {
    50: '#a3a061',
    500: '#797a1e',
    950: '#000000',
  },
}
SCSS
$custom: #797a1e;
$custom-light: #a3a061;
$custom-dark: #000000;
JSON
{
  "hex": "#797a1e",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 30
  },
  "hsl": {
    "h": 60.652,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5613,
    "c": 0.11051,
    "h": 110.1
  },
  "luminance": 0.18078
}

Semantic roles & 50–950 ramp

primary
#797A1E
secondary
#4746AE
accent
#44E446
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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