#797D1C#797D1C

#797D1C is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.115 H 112.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#797D1C
RGBrgb(121, 125, 28)
HSLhsl(62, 63%, 30%)
HSVhsv(62, 78%, 49%)
CMYKcmyk(3.2%, 0%, 77.6%, 51%)
CIE-LABlab(50.47, -13.76, 48.58)
CIE-LCHlch(50.47, 50.49, 105.82°)
OKLaboklab(56.83% -0.043 0.1067)
OKLCHoklch(56.83% 0.115 112)
XYZxyz(15.4289, 18.8164, 3.9176)
Luminance0.1882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D1C #201C7D
analogous
#7D501C #797D1C #497D1C
triadic
#797D1C #1C797D #7D1C79
tetradic
#797D1C #1C7D50 #201C7D #7D1C49
square
#797D1C #1C7D50 #201C7D #7D1C49
split-complementary
#797D1C #1C497D #501C7D
monochromatic
#181906 #494B11 #797D1C #A9AF27 #CED43F

Accessibility & contrast

On white

4.41
#797D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#797D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D1C
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D1C#FFFFFF#000000##000000
##797D1C1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877705
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d1c;
/* rgb */ color: rgb(121, 125, 28);
/* oklch */ color: oklch(56.8% 0.115 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a261',
    500: '#797d1c',
    950: '#000000',
  },
}
SCSS
$custom: #797d1c;
$custom-light: #a3a261;
$custom-dark: #000000;
JSON
{
  "hex": "#797d1c",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 62.474,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.56831,
    "c": 0.11501,
    "h": 112
  },
  "luminance": 0.18816
}

Semantic roles & 50–950 ramp

primary
#797D1C
secondary
#4944B1
accent
#41E648
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #797D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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