#797F39#797F39

#797F39 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.094 H 113.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#797F39
RGBrgb(121, 127, 57)
HSLhsl(65, 38%, 36%)
HSVhsv(65, 55%, 50%)
CMYKcmyk(4.7%, 0%, 55.1%, 50.2%)
CIE-LABlab(51.31, -12.84, 36.75)
CIE-LCHlch(51.31, 38.93, 109.26°)
OKLaboklab(57.58% -0.0373 0.0861)
OKLCHoklch(57.58% 0.094 113.4)
XYZxyz(16.2134, 19.5394, 6.7875)
Luminance0.1954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F39 #3F397F
analogous
#7F6239 #797F39 #567F39
triadic
#797F39 #39797F #7F3979
tetradic
#797F39 #397F62 #3F397F #7F3956
square
#797F39 #397F62 #3F397F #7F3956
split-complementary
#797F39 #39567F #62397F
monochromatic
#292B13 #515526 #797F39 #A1A94C #B9C072

Accessibility & contrast

On white

4.28
#797F39 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#797F39 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F39
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F39#FFFFFF#000000##000000
##797F391.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#877932
Deuteranopia (green-blind)
#877B3D
Tritanopia (blue-blind)
#80786F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f39;
/* rgb */ color: rgb(121, 127, 57);
/* oklch */ color: oklch(57.6% 0.094 113.4);
Tailwind
colors: {
  custom: {
    50: '#a1a472',
    500: '#797f39',
    950: '#000000',
  },
}
SCSS
$custom: #797f39;
$custom-light: #a1a472;
$custom-dark: #000000;
JSON
{
  "hex": "#797f39",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 57
  },
  "hsl": {
    "h": 65.143,
    "s": 38.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.57582,
    "c": 0.09386,
    "h": 113.4
  },
  "luminance": 0.19539
}

Semantic roles & 50–950 ramp

primary
#797F39
secondary
#706BA9
accent
#5ACE64
background
#FAFAF7
surface
#F4F3ED
border
#CECDC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #797F39

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

Preview Lab → · Contrast checker → · Palette generator →

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