#797D19#797D19

#797D19 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#797D19
RGBrgb(121, 125, 25)
HSLhsl(62, 67%, 29%)
HSVhsv(62, 80%, 49%)
CMYKcmyk(3.2%, 0%, 80%, 51%)
CIE-LABlab(50.46, -13.90, 49.58)
CIE-LCHlch(50.46, 51.49, 105.66°)
OKLaboklab(56.81% -0.0436 0.1082)
OKLCHoklch(56.81% 0.117 112)
XYZxyz(15.3948, 18.8028, 3.7379)
Luminance0.1880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D19 #1D197D
analogous
#7D4F19 #797D19 #477D19
triadic
#797D19 #19797D #7D1979
tetradic
#797D19 #197D4F #1D197D #7D1947
square
#797D19 #197D4F #1D197D #7D1947
split-complementary
#797D19 #19477D #4F197D
monochromatic
#191A05 #484A0F #797D19 #AAB023 #D1D739

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797D19#FFFFFF#000000##000000
##797D191.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)
#887922
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d19;
/* rgb */ color: rgb(121, 125, 25);
/* oklch */ color: oklch(56.8% 0.117 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a25f',
    500: '#797d19',
    950: '#000000',
  },
}
SCSS
$custom: #797d19;
$custom-light: #a3a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#797d19",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 25
  },
  "hsl": {
    "h": 62.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56813,
    "c": 0.11667,
    "h": 112
  },
  "luminance": 0.18802
}

Semantic roles & 50–950 ramp

primary
#797D19
secondary
#4540B1
accent
#3EEA45
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #797D19

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

Preview Lab → · Contrast checker → · Palette generator →

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