#797F16#797F16

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

Color values

HEX#797F16
RGBrgb(121, 127, 22)
HSLhsl(63, 70%, 29%)
HSVhsv(63, 83%, 50%)
CMYKcmyk(4.7%, 0%, 82.7%, 50.2%)
CIE-LABlab(51.04, -15.09, 51.03)
CIE-LCHlch(51.04, 53.21, 106.47°)
OKLaboklab(57.28% -0.0472 0.1107)
OKLCHoklch(57.28% 0.12 113.1)
XYZxyz(15.6199, 19.3020, 3.6617)
Luminance0.1930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F16 #1C167F
analogous
#7F5116 #797F16 #447F16
triadic
#797F16 #16797F #7F1679
tetradic
#797F16 #167F51 #1C167F #7F1644
square
#797F16 #167F51 #1C167F #7F1644
split-complementary
#797F16 #16447F #51167F
monochromatic
#191A05 #474B0D #797F16 #ABB31F #D2DC34

Accessibility & contrast

On white

4.32
#797F16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#797F16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F16
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F16#FFFFFF#000000##000000
##797F161.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#897B20
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f16;
/* rgb */ color: rgb(121, 127, 22);
/* oklch */ color: oklch(57.3% 0.120 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a35e',
    500: '#797f16',
    950: '#000000',
  },
}
SCSS
$custom: #797f16;
$custom-light: #a3a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#797f16",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 63.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57276,
    "c": 0.12037,
    "h": 113.1
  },
  "luminance": 0.19302
}

Semantic roles & 50–950 ramp

primary
#797F16
secondary
#443DB4
accent
#3BED45
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797F16

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

Preview Lab → · Contrast checker → · Palette generator →

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