#797B2B#797B2B

#797B2B is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.102 H 110.6°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#797B2B
RGBrgb(121, 123, 43)
HSLhsl(62, 48%, 33%)
HSVhsv(62, 65%, 48%)
CMYKcmyk(1.6%, 0%, 65%, 51.8%)
CIE-LABlab(49.98, -11.81, 42.02)
CIE-LCHlch(49.98, 43.65, 105.69°)
OKLaboklab(56.48% -0.0359 0.0955)
OKLCHoklch(56.48% 0.102 110.6)
XYZxyz(15.4046, 18.4057, 5.0262)
Luminance0.1840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B2B #2D2B7B
analogous
#7B552B #797B2B #517B2B
triadic
#797B2B #2B797B #7B2B79
tetradic
#797B2B #2B7B55 #2D2B7B #7B2B51
square
#797B2B #2B7B55 #2D2B7B #7B2B51
split-complementary
#797B2B #2B517B #552B7B
monochromatic
#20200B #4C4E1B #797B2B #A6A83B #C3C65B

Accessibility & contrast

On white

4.49
#797B2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#797B2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B2B
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B2B#FFFFFF#000000##000000
##797B2B1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#857621
Deuteranopia (green-blind)
#857830
Tritanopia (blue-blind)
#81736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b2b;
/* rgb */ color: rgb(121, 123, 43);
/* oklch */ color: oklch(56.5% 0.102 110.6);
Tailwind
colors: {
  custom: {
    50: '#a2a169',
    500: '#797b2b',
    950: '#000000',
  },
}
SCSS
$custom: #797b2b;
$custom-light: #a2a169;
$custom-dark: #000000;
JSON
{
  "hex": "#797b2b",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 43
  },
  "hsl": {
    "h": 61.5,
    "s": 48.193,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56476,
    "c": 0.10205,
    "h": 110.6
  },
  "luminance": 0.18405
}

Semantic roles & 50–950 ramp

primary
#797B2B
secondary
#5856AB
accent
#50D853
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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