#797E17#797E17

#797E17 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.119 H 112.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797E17
RGBrgb(121, 126, 23)
HSLhsl(63, 69%, 29%)
HSVhsv(63, 82%, 49%)
CMYKcmyk(4%, 0%, 81.7%, 50.6%)
CIE-LABlab(50.74, -14.51, 50.47)
CIE-LCHlch(50.74, 52.51, 106.04°)
OKLaboklab(57.04% -0.0455 0.1097)
OKLCHoklch(57.04% 0.119 112.5)
XYZxyz(15.5012, 19.0489, 3.6707)
Luminance0.1905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E17 #1C177E
analogous
#7E5017 #797E17 #467E17
triadic
#797E17 #17797E #7E1779
tetradic
#797E17 #177E50 #1C177E #7E1746
square
#797E17 #177E50 #1C177E #7E1746
split-complementary
#797E17 #17467E #50177E
monochromatic
#191A05 #474A0E #797E17 #ABB220 #D2DA35

Accessibility & contrast

On white

4.37
#797E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#797E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E17
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E17#FFFFFF#000000##000000
##797E171.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A21
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e17;
/* rgb */ color: rgb(121, 126, 23);
/* oklch */ color: oklch(57.0% 0.119 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a35f',
    500: '#797e17',
    950: '#000000',
  },
}
SCSS
$custom: #797e17;
$custom-light: #a3a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#797e17",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 62.913,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57041,
    "c": 0.11878,
    "h": 112.5
  },
  "luminance": 0.19049
}

Semantic roles & 50–950 ramp

primary
#797E17
secondary
#443EB3
accent
#3CEC44
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797E17

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

Preview Lab → · Contrast checker → · Palette generator →

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