#797B34#797B34

#797B34 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.094 H 110.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#797B34
RGBrgb(121, 123, 52)
HSLhsl(62, 41%, 34%)
HSVhsv(62, 58%, 48%)
CMYKcmyk(1.6%, 0%, 57.7%, 51.8%)
CIE-LABlab(50.07, -11.11, 37.84)
CIE-LCHlch(50.07, 39.43, 106.36°)
OKLaboklab(56.57% -0.0329 0.0879)
OKLCHoklch(56.57% 0.094 110.5)
XYZxyz(15.5883, 18.4792, 5.9938)
Luminance0.1848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B34 #36347B
analogous
#7B5A34 #797B34 #567B34
triadic
#797B34 #34797B #7B3479
tetradic
#797B34 #347B5A #36347B #7B3456
square
#797B34 #347B5A #36347B #7B3456
split-complementary
#797B34 #34567B #5A347B
monochromatic
#242510 #4F5022 #797B34 #A3A646 #BDC06A

Accessibility & contrast

On white

4.47
#797B34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#797B34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B34
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B34#FFFFFF#000000##000000
##797B341.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#84762D
Deuteranopia (green-blind)
#857838
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b34;
/* rgb */ color: rgb(121, 123, 52);
/* oklch */ color: oklch(56.6% 0.094 110.5);
Tailwind
colors: {
  custom: {
    50: '#a2a16e',
    500: '#797b34',
    950: '#000000',
  },
}
SCSS
$custom: #797b34;
$custom-light: #a2a16e;
$custom-dark: #000000;
JSON
{
  "hex": "#797b34",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 52
  },
  "hsl": {
    "h": 61.69,
    "s": 40.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56574,
    "c": 0.09384,
    "h": 110.5
  },
  "luminance": 0.18479
}

Semantic roles & 50–950 ramp

primary
#797B34
secondary
#6563A8
accent
#57D05B
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797B34

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

Preview Lab → · Contrast checker → · Palette generator →

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