#797C1B#797C1B

#797C1B 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#797C1B
RGBrgb(121, 124, 27)
HSLhsl(62, 64%, 30%)
HSVhsv(62, 78%, 49%)
CMYKcmyk(2.4%, 0%, 78.2%, 51.4%)
CIE-LABlab(50.17, -13.27, 48.65)
CIE-LCHlch(50.17, 50.42, 105.26°)
OKLaboklab(56.59% -0.0417 0.1066)
OKLCHoklch(56.59% 0.114 111.4)
XYZxyz(15.2912, 18.5598, 3.8136)
Luminance0.1856 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C1B #1E1B7C
analogous
#7C4F1B #797C1B #487C1B
triadic
#797C1B #1B797C #7C1B79
tetradic
#797C1B #1B7C4F #1E1B7C #7C1B48
square
#797C1B #1B7C4F #1E1B7C #7C1B48
split-complementary
#797C1B #1B487C #4F1B7C
monochromatic
#191905 #484A10 #797C1B #AAAE26 #D0D53D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797C1B#FFFFFF#000000##000000
##797C1B1.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)
#867604
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c1b;
/* rgb */ color: rgb(121, 124, 27);
/* oklch */ color: oklch(56.6% 0.114 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a160',
    500: '#797c1b',
    950: '#000000',
  },
}
SCSS
$custom: #797c1b;
$custom-light: #a3a160;
$custom-dark: #000000;
JSON
{
  "hex": "#797c1b",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 61.856,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56587,
    "c": 0.11448,
    "h": 111.4
  },
  "luminance": 0.18559
}

Semantic roles & 50–950 ramp

primary
#797C1B
secondary
#4643B0
accent
#41E746
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #797C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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