#797A18#797A18

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

Color values

HEX#797A18
RGBrgb(121, 122, 24)
HSLhsl(61, 67%, 29%)
HSVhsv(61, 80%, 48%)
CMYKcmyk(0.8%, 0%, 80.3%, 52.2%)
CIE-LABlab(49.56, -12.31, 49.09)
CIE-LCHlch(49.56, 50.61, 104.08°)
OKLaboklab(56.09% -0.0393 0.107)
OKLCHoklch(56.09% 0.114 110.2)
XYZxyz(15.0101, 18.0504, 3.5574)
Luminance0.1805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A18 #19187A
analogous
#7A4A18 #797A18 #487A18
triadic
#797A18 #18797A #7A1879
tetradic
#797A18 #187A4A #19187A #7A1848
square
#797A18 #187A4A #19187A #7A1848
split-complementary
#797A18 #18487A #4A187A
monochromatic
#191A05 #46470E #797A18 #ACAD22 #D6D735

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797A18#FFFFFF#000000##000000
##797A181.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)
#857721
Tritanopia (blue-blind)
#827268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a18;
/* rgb */ color: rgb(121, 122, 24);
/* oklch */ color: oklch(56.1% 0.114 110.2);
Tailwind
colors: {
  custom: {
    50: '#a3a05f',
    500: '#797a18',
    950: '#000000',
  },
}
SCSS
$custom: #797a18;
$custom-light: #a3a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#797a18",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 60.612,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56093,
    "c": 0.11398,
    "h": 110.2
  },
  "luminance": 0.1805
}

Semantic roles & 50–950 ramp

primary
#797A18
secondary
#403FAF
accent
#3EEA40
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797A18

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

Preview Lab → · Contrast checker → · Palette generator →

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