#797B21#797B21

#797B21 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.110 H 110.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#797B21
RGBrgb(121, 123, 33)
HSLhsl(61, 58%, 31%)
HSVhsv(61, 73%, 48%)
CMYKcmyk(1.6%, 0%, 73.2%, 51.8%)
CIE-LABlab(49.91, -12.43, 46.19)
CIE-LCHlch(49.91, 47.83, 105.06°)
OKLaboklab(56.39% -0.0388 0.1026)
OKLCHoklch(56.39% 0.11 110.7)
XYZxyz(15.2431, 18.3411, 4.1758)
Luminance0.1834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B21 #23217B
analogous
#7B5021 #797B21 #4C7B21
triadic
#797B21 #21797B #7B2179
tetradic
#797B21 #217B50 #23217B #7B214C
square
#797B21 #217B50 #23217B #7B214C
split-complementary
#797B21 #214C7B #50217B
monochromatic
#1A1A07 #4A4B14 #797B21 #A8AB2E #CBCE48

Accessibility & contrast

On white

4.50
#797B21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#797B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B21
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B21#FFFFFF#000000##000000
##797B211.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#857511
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b21;
/* rgb */ color: rgb(121, 123, 33);
/* oklch */ color: oklch(56.4% 0.110 110.7);
Tailwind
colors: {
  custom: {
    50: '#a3a163',
    500: '#797b21',
    950: '#000000',
  },
}
SCSS
$custom: #797b21;
$custom-light: #a3a163;
$custom-dark: #000000;
JSON
{
  "hex": "#797b21",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 33
  },
  "hsl": {
    "h": 61.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5639,
    "c": 0.10965,
    "h": 110.7
  },
  "luminance": 0.18341
}

Semantic roles & 50–950 ramp

primary
#797B21
secondary
#4C4AAE
accent
#47E14A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B21

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

Preview Lab → · Contrast checker → · Palette generator →

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