#797A17#797A17

#797A17 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.1% C 0.115 H 110.2°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#797A17
RGBrgb(121, 122, 23)
HSLhsl(61, 68%, 28%)
HSVhsv(61, 81%, 48%)
CMYKcmyk(0.8%, 0%, 81.1%, 52.2%)
CIE-LABlab(49.55, -12.35, 49.41)
CIE-LCHlch(49.55, 50.93, 104.04°)
OKLaboklab(56.09% -0.0395 0.1075)
OKLCHoklch(56.09% 0.115 110.2)
XYZxyz(14.9999, 18.0463, 3.5036)
Luminance0.1805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A17 #18177A
analogous
#7A4917 #797A17 #477A17
triadic
#797A17 #17797A #7A1779
tetradic
#797A17 #177A49 #18177A #7A1747
square
#797A17 #177A49 #18177A #7A1747
split-complementary
#797A17 #17477A #49177A
monochromatic
#1A1A05 #46470D #797A17 #ACAD21 #D7D933

Accessibility & contrast

On white

4.56
#797A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#797A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A17
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A17#FFFFFF#000000##000000
##797A171.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#857720
Tritanopia (blue-blind)
#827268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a17;
/* rgb */ color: rgb(121, 122, 23);
/* oklch */ color: oklch(56.1% 0.115 110.2);
Tailwind
colors: {
  custom: {
    50: '#a3a05e',
    500: '#797a17',
    950: '#000000',
  },
}
SCSS
$custom: #797a17;
$custom-light: #a3a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#797a17",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 60.606,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56087,
    "c": 0.1145,
    "h": 110.2
  },
  "luminance": 0.18046
}

Semantic roles & 50–950 ramp

primary
#797A17
secondary
#3F3EAF
accent
#3DEB3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797A17

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

Preview Lab → · Contrast checker → · Palette generator →

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