#797F2B#797F2B

#797F2B is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.107 H 113.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#797F2B
RGBrgb(121, 127, 43)
HSLhsl(64, 49%, 33%)
HSVhsv(64, 66%, 50%)
CMYKcmyk(4.7%, 0%, 66.1%, 50.2%)
CIE-LABlab(51.17, -13.98, 43.28)
CIE-LCHlch(51.17, 45.48, 107.90°)
OKLaboklab(57.43% -0.042 0.0982)
OKLCHoklch(57.43% 0.107 113.2)
XYZxyz(15.9110, 19.4184, 5.1950)
Luminance0.1942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F2B #312B7F
analogous
#7F5B2B #797F2B #4F7F2B
triadic
#797F2B #2B797F #7F2B79
tetradic
#797F2B #2B7F5B #312B7F #7F2B4F
square
#797F2B #2B7F5B #312B7F #7F2B4F
split-complementary
#797F2B #2B4F7F #5B2B7F
monochromatic
#22240C #4D511C #797F2B #A5AD3A #C0C85C

Accessibility & contrast

On white

4.30
#797F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#797F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F2B
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F2B#FFFFFF#000000##000000
##797F2B1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#887920
Deuteranopia (green-blind)
#887B31
Tritanopia (blue-blind)
#81776E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f2b;
/* rgb */ color: rgb(121, 127, 43);
/* oklch */ color: oklch(57.4% 0.107 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a469',
    500: '#797f2b',
    950: '#000000',
  },
}
SCSS
$custom: #797f2b;
$custom-light: #a2a469;
$custom-dark: #000000;
JSON
{
  "hex": "#797f2b",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 64.286,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57426,
    "c": 0.10678,
    "h": 113.2
  },
  "luminance": 0.19418
}

Semantic roles & 50–950 ramp

primary
#797F2B
secondary
#5E58AE
accent
#4FD959
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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