#797B17#797B17

#797B17 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.116 H 110.8°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#797B17
RGBrgb(121, 123, 23)
HSLhsl(61, 68%, 29%)
HSVhsv(61, 81%, 48%)
CMYKcmyk(1.6%, 0%, 81.3%, 51.8%)
CIE-LABlab(49.85, -12.90, 49.67)
CIE-LCHlch(49.85, 51.32, 104.55°)
OKLaboklab(56.33% -0.041 0.108)
OKLCHoklch(56.33% 0.116 110.8)
XYZxyz(15.1233, 18.2932, 3.5447)
Luminance0.1829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B17 #19177B
analogous
#7B4B17 #797B17 #477B17
triadic
#797B17 #17797B #7B1779
tetradic
#797B17 #177B4B #19177B #7B1747
square
#797B17 #177B4B #19177B #7B1747
split-complementary
#797B17 #17477B #4B177B
monochromatic
#191A05 #46470D #797B17 #ACAF21 #D6D933

Accessibility & contrast

On white

4.51
#797B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#797B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B17
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B17#FFFFFF#000000##000000
##797B171.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#867820
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b17;
/* rgb */ color: rgb(121, 123, 23);
/* oklch */ color: oklch(56.3% 0.116 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a05e',
    500: '#797b17',
    950: '#000000',
  },
}
SCSS
$custom: #797b17;
$custom-light: #a3a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#797b17",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 61.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56325,
    "c": 0.11555,
    "h": 110.8
  },
  "luminance": 0.18293
}

Semantic roles & 50–950 ramp

primary
#797B17
secondary
#403EB0
accent
#3CEB40
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797B17

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

Preview Lab → · Contrast checker → · Palette generator →

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