#797E2B#797E2B

#797E2B is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.106 H 112.6°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#797E2B
RGBrgb(121, 126, 43)
HSLhsl(64, 49%, 33%)
HSVhsv(64, 66%, 49%)
CMYKcmyk(4%, 0%, 65.9%, 50.6%)
CIE-LABlab(50.88, -13.44, 42.96)
CIE-LCHlch(50.88, 45.02, 107.37°)
OKLaboklab(57.19% -0.0405 0.0975)
OKLCHoklch(57.19% 0.106 112.6)
XYZxyz(15.7825, 19.1614, 5.1522)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E2B #302B7E
analogous
#7E592B #797E2B #507E2B
triadic
#797E2B #2B797E #7E2B79
tetradic
#797E2B #2B7E59 #302B7E #7E2B50
square
#797E2B #2B7E59 #302B7E #7E2B50
split-complementary
#797E2B #2B507E #592B7E
monochromatic
#21230C #4D501B #797E2B #A5AC3B #C1C75C

Accessibility & contrast

On white

4.35
#797E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#797E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E2B
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E2B#FFFFFF#000000##000000
##797E2B1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877820
Deuteranopia (green-blind)
#887A30
Tritanopia (blue-blind)
#81766D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e2b;
/* rgb */ color: rgb(121, 126, 43);
/* oklch */ color: oklch(57.2% 0.106 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a369',
    500: '#797e2b',
    950: '#000000',
  },
}
SCSS
$custom: #797e2b;
$custom-light: #a2a369;
$custom-dark: #000000;
JSON
{
  "hex": "#797e2b",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 43
  },
  "hsl": {
    "h": 63.614,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57188,
    "c": 0.10559,
    "h": 112.6
  },
  "luminance": 0.19161
}

Semantic roles & 50–950 ramp

primary
#797E2B
secondary
#5D58AD
accent
#4FD957
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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