#797C1C#797C1C

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

Color values

HEX#797C1C
RGBrgb(121, 124, 28)
HSLhsl(62, 63%, 30%)
HSVhsv(62, 77%, 49%)
CMYKcmyk(2.4%, 0%, 77.4%, 51.4%)
CIE-LABlab(50.17, -13.22, 48.30)
CIE-LCHlch(50.17, 50.08, 105.31°)
OKLaboklab(56.59% -0.0415 0.1061)
OKLCHoklch(56.59% 0.114 111.4)
XYZxyz(15.3029, 18.5645, 3.8756)
Luminance0.1856 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C1C #1F1C7C
analogous
#7C4F1C #797C1C #497C1C
triadic
#797C1C #1C797C #7C1C79
tetradic
#797C1C #1C7C4F #1F1C7C #7C1C49
square
#797C1C #1C7C4F #1F1C7C #7C1C49
split-complementary
#797C1C #1C497C #4F1C7C
monochromatic
#181906 #484A11 #797C1C #AAAE27 #CFD43F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797C1C#FFFFFF#000000##000000
##797C1C1.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)
#867606
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c1c;
/* rgb */ color: rgb(121, 124, 28);
/* oklch */ color: oklch(56.6% 0.114 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a161',
    500: '#797c1c',
    950: '#000000',
  },
}
SCSS
$custom: #797c1c;
$custom-light: #a3a161;
$custom-dark: #000000;
JSON
{
  "hex": "#797c1c",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 28
  },
  "hsl": {
    "h": 61.875,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56593,
    "c": 0.11391,
    "h": 111.4
  },
  "luminance": 0.18564
}

Semantic roles & 50–950 ramp

primary
#797C1C
secondary
#4744B0
accent
#42E647
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #797C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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