#797C17#797C17

#797C17 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.117 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797C17
RGBrgb(121, 124, 23)
HSLhsl(62, 69%, 29%)
HSVhsv(62, 81%, 49%)
CMYKcmyk(2.4%, 0%, 81.5%, 51.4%)
CIE-LABlab(50.15, -13.44, 49.94)
CIE-LCHlch(50.15, 51.71, 105.06°)
OKLaboklab(56.56% -0.0425 0.1086)
OKLCHoklch(56.56% 0.117 111.4)
XYZxyz(15.2480, 18.5425, 3.5863)
Luminance0.1854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C17 #1A177C
analogous
#7C4D17 #797C17 #477C17
triadic
#797C17 #17797C #7C1779
tetradic
#797C17 #177C4D #1A177C #7C1747
square
#797C17 #177C4D #1A177C #7C1747
split-complementary
#797C17 #17477C #4D177C
monochromatic
#191A05 #47480D #797C17 #ABB021 #D4D934

Accessibility & contrast

On white

4.46
#797C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C17
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C17#FFFFFF#000000##000000
##797C171.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#877820
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c17;
/* rgb */ color: rgb(121, 124, 23);
/* oklch */ color: oklch(56.6% 0.117 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a15e',
    500: '#797c17',
    950: '#000000',
  },
}
SCSS
$custom: #797c17;
$custom-light: #a3a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#797c17",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 61.782,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56564,
    "c": 0.11662,
    "h": 111.4
  },
  "luminance": 0.18542
}

Semantic roles & 50–950 ramp

primary
#797C17
secondary
#413EB1
accent
#3CEC41
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797C17

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

Preview Lab → · Contrast checker → · Palette generator →

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