#797D14#797D14

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

Color values

HEX#797D14
RGBrgb(121, 125, 20)
HSLhsl(62, 72%, 28%)
HSVhsv(62, 84%, 49%)
CMYKcmyk(3.2%, 0%, 84%, 51%)
CIE-LABlab(50.43, -14.09, 51.08)
CIE-LCHlch(50.43, 52.98, 105.42°)
OKLaboklab(56.79% -0.0446 0.1105)
OKLCHoklch(56.79% 0.119 112)
XYZxyz(15.3456, 18.7831, 3.4788)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D14 #18147D
analogous
#7D4C14 #797D14 #447D14
triadic
#797D14 #14797D #7D1479
tetradic
#797D14 #147D4C #18147D #7D1444
square
#797D14 #147D4C #18147D #7D1444
split-complementary
#797D14 #14447D #4C147D
monochromatic
#1A1A04 #46480C #797D14 #ACB21C #D7DE2E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797D14#FFFFFF#000000##000000
##797D141.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)
#88791E
Tritanopia (blue-blind)
#82756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d14;
/* rgb */ color: rgb(121, 125, 20);
/* oklch */ color: oklch(56.8% 0.119 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a25d',
    500: '#797d14',
    950: '#000000',
  },
}
SCSS
$custom: #797d14;
$custom-light: #a3a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#797d14",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 20
  },
  "hsl": {
    "h": 62.286,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56787,
    "c": 0.11911,
    "h": 112
  },
  "luminance": 0.18783
}

Semantic roles & 50–950 ramp

primary
#797D14
secondary
#3F3AB2
accent
#39EF40
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #797D14

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

Preview Lab → · Contrast checker → · Palette generator →

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