#797D2B#797D2B

#797D2B is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.104 H 111.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#797D2B
RGBrgb(121, 125, 43)
HSLhsl(63, 49%, 33%)
HSVhsv(63, 66%, 49%)
CMYKcmyk(3.2%, 0%, 65.6%, 51%)
CIE-LABlab(50.58, -12.89, 42.65)
CIE-LCHlch(50.58, 44.56, 106.82°)
OKLaboklab(56.95% -0.039 0.0968)
OKLCHoklch(56.95% 0.104 111.9)
XYZxyz(15.6553, 18.9070, 5.1098)
Luminance0.1891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D2B #2F2B7D
analogous
#7D582B #797D2B #507D2B
triadic
#797D2B #2B797D #7D2B79
tetradic
#797D2B #2B7D58 #2F2B7D #7D2B50
square
#797D2B #2B7D58 #2F2B7D #7D2B50
split-complementary
#797D2B #2B507D #582B7D
monochromatic
#21220C #4D4F1B #797D2B #A5AB3B #C2C75C

Accessibility & contrast

On white

4.39
#797D2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#797D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D2B
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D2B#FFFFFF#000000##000000
##797D2B1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#867720
Deuteranopia (green-blind)
#877930
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d2b;
/* rgb */ color: rgb(121, 125, 43);
/* oklch */ color: oklch(57.0% 0.104 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a269',
    500: '#797d2b',
    950: '#000000',
  },
}
SCSS
$custom: #797d2b;
$custom-light: #a2a269;
$custom-dark: #000000;
JSON
{
  "hex": "#797d2b",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 62.927,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5695,
    "c": 0.10439,
    "h": 111.9
  },
  "luminance": 0.18907
}

Semantic roles & 50–950 ramp

primary
#797D2B
secondary
#5B57AD
accent
#4FD856
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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