#797D21#797D21

#797D21 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.112 H 111.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#797D21
RGBrgb(121, 125, 33)
HSLhsl(63, 58%, 31%)
HSVhsv(63, 74%, 49%)
CMYKcmyk(3.2%, 0%, 73.6%, 51%)
CIE-LABlab(50.50, -13.51, 46.77)
CIE-LCHlch(50.50, 48.68, 106.12°)
OKLaboklab(56.87% -0.0418 0.1038)
OKLCHoklch(56.87% 0.112 111.9)
XYZxyz(15.4938, 18.8424, 4.2593)
Luminance0.1884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D21 #25217D
analogous
#7D5321 #797D21 #4B7D21
triadic
#797D21 #21797D #7D2179
tetradic
#797D21 #217D53 #25217D #7D214B
square
#797D21 #217D53 #25217D #7D214B
split-complementary
#797D21 #214B7D #53217D
monochromatic
#1B1C07 #4A4D14 #797D21 #A8AD2E #C9CF49

Accessibility & contrast

On white

4.40
#797D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#797D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D21
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D21#FFFFFF#000000##000000
##797D211.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797d21;
/* rgb */ color: rgb(121, 125, 33);
/* oklch */ color: oklch(56.9% 0.112 111.9);
Tailwind
colors: {
  custom: {
    50: '#a3a263',
    500: '#797d21',
    950: '#000000',
  },
}
SCSS
$custom: #797d21;
$custom-light: #a3a263;
$custom-dark: #000000;
JSON
{
  "hex": "#797d21",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 62.609,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56865,
    "c": 0.11189,
    "h": 111.9
  },
  "luminance": 0.18842
}

Semantic roles & 50–950 ramp

primary
#797D21
secondary
#4E4AB0
accent
#46E14D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D21

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

Preview Lab → · Contrast checker → · Palette generator →

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