#797B22#797B22

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

Color values

HEX#797B22
RGBrgb(121, 123, 34)
HSLhsl(61, 57%, 31%)
HSVhsv(61, 72%, 48%)
CMYKcmyk(1.6%, 0%, 72.4%, 51.8%)
CIE-LABlab(49.91, -12.37, 45.80)
CIE-LCHlch(49.91, 47.44, 105.12°)
OKLaboklab(56.4% -0.0385 0.1019)
OKLCHoklch(56.4% 0.109 110.7)
XYZxyz(15.2574, 18.3468, 4.2506)
Luminance0.1835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B22 #24227B
analogous
#7B5022 #797B22 #4C7B22
triadic
#797B22 #22797B #7B2279
tetradic
#797B22 #227B50 #24227B #7B224C
square
#797B22 #227B50 #24227B #7B224C
split-complementary
#797B22 #224C7B #50227B
monochromatic
#1B1B07 #4A4B15 #797B22 #A8AB2F #CACD4A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797B22#FFFFFF#000000##000000
##797B221.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)
#857513
Deuteranopia (green-blind)
#867829
Tritanopia (blue-blind)
#82736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b22;
/* rgb */ color: rgb(121, 123, 34);
/* oklch */ color: oklch(56.4% 0.109 110.7);
Tailwind
colors: {
  custom: {
    50: '#a3a163',
    500: '#797b22',
    950: '#000000',
  },
}
SCSS
$custom: #797b22;
$custom-light: #a3a163;
$custom-dark: #000000;
JSON
{
  "hex": "#797b22",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 61.348,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56397,
    "c": 0.10896,
    "h": 110.7
  },
  "luminance": 0.18346
}

Semantic roles & 50–950 ramp

primary
#797B22
secondary
#4D4BAE
accent
#48E04B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B22

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

Preview Lab → · Contrast checker → · Palette generator →

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