#797F20#797F20

#797F20 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.115 H 113.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797F20
RGBrgb(121, 127, 32)
HSLhsl(64, 60%, 31%)
HSVhsv(64, 75%, 50%)
CMYKcmyk(4.7%, 0%, 74.8%, 50.2%)
CIE-LABlab(51.09, -14.64, 47.72)
CIE-LCHlch(51.09, 49.91, 107.06°)
OKLaboklab(57.34% -0.0451 0.1056)
OKLCHoklch(57.34% 0.115 113.1)
XYZxyz(15.7357, 19.3483, 4.2719)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F20 #26207F
analogous
#7F5520 #797F20 #497F20
triadic
#797F20 #20797F #7F2079
tetradic
#797F20 #207F55 #26207F #7F2049
square
#797F20 #207F55 #26207F #7F2049
split-complementary
#797F20 #20497F #55207F
monochromatic
#1C1D07 #4A4E14 #797F20 #A8B02C #C8D148

Accessibility & contrast

On white

4.31
#797F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#797F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F20
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F20#FFFFFF#000000##000000
##797F201.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790E
Deuteranopia (green-blind)
#897B28
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f20;
/* rgb */ color: rgb(121, 127, 32);
/* oklch */ color: oklch(57.3% 0.115 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a363',
    500: '#797f20',
    950: '#000000',
  },
}
SCSS
$custom: #797f20;
$custom-light: #a3a363;
$custom-dark: #000000;
JSON
{
  "hex": "#797f20",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 63.789,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.57336,
    "c": 0.11481,
    "h": 113.1
  },
  "luminance": 0.19348
}

Semantic roles & 50–950 ramp

primary
#797F20
secondary
#5049B2
accent
#45E34F
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F20

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

Preview Lab → · Contrast checker → · Palette generator →

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