#797D18#797D18

#797D18 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.117 H 112.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#797D18
RGBrgb(121, 125, 24)
HSLhsl(62, 68%, 29%)
HSVhsv(62, 81%, 49%)
CMYKcmyk(3.2%, 0%, 80.8%, 51%)
CIE-LABlab(50.45, -13.94, 49.89)
CIE-LCHlch(50.45, 51.80, 105.61°)
OKLaboklab(56.81% -0.0438 0.1087)
OKLCHoklch(56.81% 0.117 112)
XYZxyz(15.3842, 18.7985, 3.6821)
Luminance0.1880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D18 #1C187D
analogous
#7D4F18 #797D18 #477D18
triadic
#797D18 #18797D #7D1879
tetradic
#797D18 #187D4F #1C187D #7D1847
square
#797D18 #187D4F #1C187D #7D1847
split-complementary
#797D18 #18477D #4F187D
monochromatic
#191A05 #474A0E #797D18 #ABB022 #D2D937

Accessibility & contrast

On white

4.41
#797D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#797D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D18
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D18#FFFFFF#000000##000000
##797D181.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#887921
Tritanopia (blue-blind)
#82756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d18;
/* rgb */ color: rgb(121, 125, 24);
/* oklch */ color: oklch(56.8% 0.117 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a25f',
    500: '#797d18',
    950: '#000000',
  },
}
SCSS
$custom: #797d18;
$custom-light: #a3a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#797d18",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 62.376,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56808,
    "c": 0.11719,
    "h": 112
  },
  "luminance": 0.18798
}

Semantic roles & 50–950 ramp

primary
#797D18
secondary
#443FB2
accent
#3DEB44
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #797D18

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

Preview Lab → · Contrast checker → · Palette generator →

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