#797A1F#797A1F

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

Color values

HEX#797A1F
RGBrgb(121, 122, 31)
HSLhsl(61, 59%, 30%)
HSVhsv(61, 75%, 48%)
CMYKcmyk(0.8%, 0%, 74.6%, 52.2%)
CIE-LABlab(49.60, -11.99, 46.66)
CIE-LCHlch(49.60, 48.18, 104.41°)
OKLaboklab(56.14% -0.0378 0.1032)
OKLCHoklch(56.14% 0.11 110.1)
XYZxyz(15.0925, 18.0834, 3.9915)
Luminance0.1808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A1F #201F7A
analogous
#7A4D1F #797A1F #4C7A1F
triadic
#797A1F #1F797A #7A1F79
tetradic
#797A1F #1F7A4D #201F7A #7A1F4C
square
#797A1F #1F7A4D #201F7A #7A1F4C
split-complementary
#797A1F #1F4C7A #4D1F7A
monochromatic
#181806 #494913 #797A1F #A9AB2B #CECF44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797A1F#FFFFFF#000000##000000
##797A1F1.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)
#84750E
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#827268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a1f;
/* rgb */ color: rgb(121, 122, 31);
/* oklch */ color: oklch(56.1% 0.110 110.1);
Tailwind
colors: {
  custom: {
    50: '#a3a062',
    500: '#797a1f',
    950: '#000000',
  },
}
SCSS
$custom: #797a1f;
$custom-light: #a3a062;
$custom-dark: #000000;
JSON
{
  "hex": "#797a1f",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 60.659,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.56137,
    "c": 0.10988,
    "h": 110.1
  },
  "luminance": 0.18083
}

Semantic roles & 50–950 ramp

primary
#797A1F
secondary
#4947AD
accent
#45E347
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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