#797B18#797B18

#797B18 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.115 H 110.8°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#797B18
RGBrgb(121, 123, 24)
HSLhsl(61, 67%, 29%)
HSVhsv(61, 80%, 48%)
CMYKcmyk(1.6%, 0%, 80.5%, 51.8%)
CIE-LABlab(49.85, -12.86, 49.36)
CIE-LCHlch(49.85, 51.01, 104.60°)
OKLaboklab(56.33% -0.0408 0.1076)
OKLCHoklch(56.33% 0.115 110.8)
XYZxyz(15.1335, 18.2972, 3.5985)
Luminance0.1830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B18 #1A187B
analogous
#7B4C18 #797B18 #487B18
triadic
#797B18 #18797B #7B1879
tetradic
#797B18 #187B4C #1A187B #7B1848
square
#797B18 #187B4C #1A187B #7B1848
split-complementary
#797B18 #18487B #4C187B
monochromatic
#191A05 #47480E #797B18 #ABAE22 #D4D836

Accessibility & contrast

On white

4.51
#797B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#797B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B18
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B18#FFFFFF#000000##000000
##797B181.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#867821
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b18;
/* rgb */ color: rgb(121, 123, 24);
/* oklch */ color: oklch(56.3% 0.115 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a05f',
    500: '#797b18',
    950: '#000000',
  },
}
SCSS
$custom: #797b18;
$custom-light: #a3a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#797b18",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 61.212,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56331,
    "c": 0.11504,
    "h": 110.8
  },
  "luminance": 0.18297
}

Semantic roles & 50–950 ramp

primary
#797B18
secondary
#413FB0
accent
#3EEA41
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797B18

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

Preview Lab → · Contrast checker → · Palette generator →

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