#797E18#797E18

#797E18 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.0% C 0.118 H 112.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797E18
RGBrgb(121, 126, 24)
HSLhsl(63, 68%, 29%)
HSVhsv(63, 81%, 49%)
CMYKcmyk(4%, 0%, 81%, 50.6%)
CIE-LABlab(50.75, -14.47, 50.16)
CIE-LCHlch(50.75, 52.21, 106.10°)
OKLaboklab(57.05% -0.0453 0.1093)
OKLCHoklch(57.05% 0.118 112.5)
XYZxyz(15.5114, 19.0530, 3.7245)
Luminance0.1905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E18 #1D187E
analogous
#7E5018 #797E18 #467E18
triadic
#797E18 #18797E #7E1879
tetradic
#797E18 #187E50 #1D187E #7E1846
square
#797E18 #187E50 #1D187E #7E1846
split-complementary
#797E18 #18467E #50187E
monochromatic
#191A05 #484B0E #797E18 #AAB122 #D1D937

Accessibility & contrast

On white

4.37
#797E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#797E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E18
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E18#FFFFFF#000000##000000
##797E181.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A21
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e18;
/* rgb */ color: rgb(121, 126, 24);
/* oklch */ color: oklch(57.0% 0.118 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a35f',
    500: '#797e18',
    950: '#000000',
  },
}
SCSS
$custom: #797e18;
$custom-light: #a3a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#797e18",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 62.941,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57047,
    "c": 0.11829,
    "h": 112.5
  },
  "luminance": 0.19053
}

Semantic roles & 50–950 ramp

primary
#797E18
secondary
#453FB2
accent
#3DEB45
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #797E18

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

Preview Lab → · Contrast checker → · Palette generator →

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