#797C1D#797C1D

#797C1D is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.113 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797C1D
RGBrgb(121, 124, 29)
HSLhsl(62, 62%, 30%)
HSVhsv(62, 77%, 49%)
CMYKcmyk(2.4%, 0%, 76.6%, 51.4%)
CIE-LABlab(50.18, -13.18, 47.95)
CIE-LCHlch(50.18, 49.73, 105.36°)
OKLaboklab(56.6% -0.0413 0.1055)
OKLCHoklch(56.6% 0.113 111.4)
XYZxyz(15.3151, 18.5694, 3.9396)
Luminance0.1857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C1D #201D7C
analogous
#7C501D #797C1D #497C1D
triadic
#797C1D #1D797C #7C1D79
tetradic
#797C1D #1D7C50 #201D7C #7C1D49
square
#797C1D #1D7C50 #201D7C #7C1D49
split-complementary
#797C1D #1D497C #501D7C
monochromatic
#181906 #494A11 #797C1D #A9AE29 #CED341

Accessibility & contrast

On white

4.46
#797C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C1D
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C1D#FFFFFF#000000##000000
##797C1D1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867608
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c1d;
/* rgb */ color: rgb(121, 124, 29);
/* oklch */ color: oklch(56.6% 0.113 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a161',
    500: '#797c1d',
    950: '#000000',
  },
}
SCSS
$custom: #797c1d;
$custom-light: #a3a161;
$custom-dark: #000000;
JSON
{
  "hex": "#797c1d",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 29
  },
  "hsl": {
    "h": 61.895,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.56599,
    "c": 0.11331,
    "h": 111.4
  },
  "luminance": 0.18569
}

Semantic roles & 50–950 ramp

primary
#797C1D
secondary
#4945B0
accent
#43E548
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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