#797F21#797F21

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

Color values

HEX#797F21
RGBrgb(121, 127, 33)
HSLhsl(64, 59%, 31%)
HSVhsv(64, 74%, 50%)
CMYKcmyk(4.7%, 0%, 74%, 50.2%)
CIE-LABlab(51.10, -14.59, 47.34)
CIE-LCHlch(51.10, 49.54, 107.13°)
OKLaboklab(57.34% -0.0448 0.105)
OKLCHoklch(57.34% 0.114 113.1)
XYZxyz(15.7495, 19.3538, 4.3446)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F21 #27217F
analogous
#7F5621 #797F21 #4A7F21
triadic
#797F21 #21797F #7F2179
tetradic
#797F21 #217F56 #27217F #7F214A
square
#797F21 #217F56 #27217F #7F214A
split-complementary
#797F21 #214A7F #56217F
monochromatic
#1C1E08 #4B4E14 #797F21 #A7B02E #C8D04A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797F21#FFFFFF#000000##000000
##797F211.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)
#897910
Deuteranopia (green-blind)
#897B28
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f21;
/* rgb */ color: rgb(121, 127, 33);
/* oklch */ color: oklch(57.3% 0.114 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a463',
    500: '#797f21',
    950: '#000000',
  },
}
SCSS
$custom: #797f21;
$custom-light: #a3a463;
$custom-dark: #000000;
JSON
{
  "hex": "#797f21",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 63.83,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57343,
    "c": 0.11417,
    "h": 113.1
  },
  "luminance": 0.19353
}

Semantic roles & 50–950 ramp

primary
#797F21
secondary
#514AB2
accent
#46E250
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F21

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

Preview Lab → · Contrast checker → · Palette generator →

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