#797F11#797F11

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

Color values

HEX#797F11
RGBrgb(121, 127, 17)
HSLhsl(63, 76%, 28%)
HSVhsv(63, 87%, 50%)
CMYKcmyk(4.7%, 0%, 86.6%, 50.2%)
CIE-LABlab(51.02, -15.25, 52.37)
CIE-LCHlch(51.02, 54.55, 106.24°)
OKLaboklab(57.25% -0.048 0.1127)
OKLCHoklch(57.25% 0.123 113.1)
XYZxyz(15.5762, 19.2845, 3.4320)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F11 #17117F
analogous
#7F4E11 #797F11 #427F11
triadic
#797F11 #11797F #7F1179
tetradic
#797F11 #117F4E #17117F #7F1142
square
#797F11 #117F4E #17117F #7F1142
split-complementary
#797F11 #11427F #4E117F
monochromatic
#1A1B04 #46490A #797F11 #ACB518 #D8E228

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797F11#FFFFFF#000000##000000
##797F111.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)
#897800
Deuteranopia (green-blind)
#897B1D
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797f11;
/* rgb */ color: rgb(121, 127, 17);
/* oklch */ color: oklch(57.3% 0.123 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a35d',
    500: '#797f11',
    950: '#000000',
  },
}
SCSS
$custom: #797f11;
$custom-light: #a3a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#797f11",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 17
  },
  "hsl": {
    "h": 63.273,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.57253,
    "c": 0.12251,
    "h": 113.1
  },
  "luminance": 0.19284
}

Semantic roles & 50–950 ramp

primary
#797F11
secondary
#3E37B5
accent
#35F33F
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797F11

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

Preview Lab → · Contrast checker → · Palette generator →

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