#797C18#797C18

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

Color values

HEX#797C18
RGBrgb(121, 124, 24)
HSLhsl(62, 68%, 29%)
HSVhsv(62, 81%, 49%)
CMYKcmyk(2.4%, 0%, 80.6%, 51.4%)
CIE-LABlab(50.15, -13.40, 49.63)
CIE-LCHlch(50.15, 51.40, 105.11°)
OKLaboklab(56.57% -0.0423 0.1081)
OKLCHoklch(56.57% 0.116 111.4)
XYZxyz(15.2582, 18.5466, 3.6401)
Luminance0.1855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C18 #1B187C
analogous
#7C4D18 #797C18 #477C18
triadic
#797C18 #18797C #7C1879
tetradic
#797C18 #187C4D #1B187C #7C1847
square
#797C18 #187C4D #1B187C #7C1847
split-complementary
#797C18 #18477C #4D187C
monochromatic
#191A05 #47490E #797C18 #ABAF22 #D3D836

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797C18#FFFFFF#000000##000000
##797C181.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)
#877921
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c18;
/* rgb */ color: rgb(121, 124, 24);
/* oklch */ color: oklch(56.6% 0.116 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a15f',
    500: '#797c18',
    950: '#000000',
  },
}
SCSS
$custom: #797c18;
$custom-light: #a3a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#797c18",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 61.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56569,
    "c": 0.11611,
    "h": 111.4
  },
  "luminance": 0.18546
}

Semantic roles & 50–950 ramp

primary
#797C18
secondary
#433FB1
accent
#3DEA43
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #797C18

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

Preview Lab → · Contrast checker → · Palette generator →

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