#797C21#797C21

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

Color values

HEX#797C21
RGBrgb(121, 124, 33)
HSLhsl(62, 58%, 31%)
HSVhsv(62, 73%, 49%)
CMYKcmyk(2.4%, 0%, 73.4%, 51.4%)
CIE-LABlab(50.20, -12.97, 46.48)
CIE-LCHlch(50.20, 48.25, 105.59°)
OKLaboklab(56.63% -0.0403 0.1032)
OKLCHoklch(56.63% 0.111 111.3)
XYZxyz(15.3678, 18.5904, 4.2173)
Luminance0.1859 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C21 #24217C
analogous
#7C5121 #797C21 #4B7C21
triadic
#797C21 #21797C #7C2179
tetradic
#797C21 #217C51 #24217C #7C214B
square
#797C21 #217C51 #24217C #7C214B
split-complementary
#797C21 #214B7C #51217C
monochromatic
#1B1B07 #4A4C14 #797C21 #A8AC2E #CACF49

Accessibility & contrast

On white

4.45
#797C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#797C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C21
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C21#FFFFFF#000000##000000
##797C211.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797c21;
/* rgb */ color: rgb(121, 124, 33);
/* oklch */ color: oklch(56.6% 0.111 111.3);
Tailwind
colors: {
  custom: {
    50: '#a3a163',
    500: '#797c21',
    950: '#000000',
  },
}
SCSS
$custom: #797c21;
$custom-light: #a3a163;
$custom-dark: #000000;
JSON
{
  "hex": "#797c21",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 33
  },
  "hsl": {
    "h": 61.978,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56627,
    "c": 0.11077,
    "h": 111.3
  },
  "luminance": 0.1859
}

Semantic roles & 50–950 ramp

primary
#797C21
secondary
#4D4AAF
accent
#47E14C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797C21

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

Preview Lab → · Contrast checker → · Palette generator →

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