#797A2B#797A2B

#797A2B is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.2% C 0.101 H 109.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#797A2B
RGBrgb(121, 122, 43)
HSLhsl(61, 48%, 32%)
HSVhsv(61, 65%, 48%)
CMYKcmyk(0.8%, 0%, 64.8%, 52.2%)
CIE-LABlab(49.69, -11.26, 41.71)
CIE-LCHlch(49.69, 43.20, 105.11°)
OKLaboklab(56.24% -0.0344 0.0948)
OKLCHoklch(56.24% 0.101 109.9)
XYZxyz(15.2812, 18.1588, 4.9851)
Luminance0.1816 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A2B #2C2B7A
analogous
#7A532B #797A2B #527A2B
triadic
#797A2B #2B797A #7A2B79
tetradic
#797A2B #2B7A53 #2C2B7A #7A2B52
square
#797A2B #2B7A53 #2C2B7A #7A2B52
split-complementary
#797A2B #2B527A #532B7A
monochromatic
#1F1F0B #4C4D1B #797A2B #A6A73B #C4C55A

Accessibility & contrast

On white

4.53
#797A2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#797A2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A2B
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A2B#FFFFFF#000000##000000
##797A2B1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#847521
Deuteranopia (green-blind)
#847730
Tritanopia (blue-blind)
#81726A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a2b;
/* rgb */ color: rgb(121, 122, 43);
/* oklch */ color: oklch(56.2% 0.101 109.9);
Tailwind
colors: {
  custom: {
    50: '#a2a068',
    500: '#797a2b',
    950: '#000000',
  },
}
SCSS
$custom: #797a2b;
$custom-light: #a2a068;
$custom-dark: #000000;
JSON
{
  "hex": "#797a2b",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 43
  },
  "hsl": {
    "h": 60.759,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56239,
    "c": 0.10089,
    "h": 109.9
  },
  "luminance": 0.18158
}

Semantic roles & 50–950 ramp

primary
#797A2B
secondary
#5756AB
accent
#50D752
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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