#797E14#797E14

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

Color values

HEX#797E14
RGBrgb(121, 126, 20)
HSLhsl(63, 73%, 29%)
HSVhsv(63, 84%, 49%)
CMYKcmyk(4%, 0%, 84.1%, 50.6%)
CIE-LABlab(50.73, -14.62, 51.33)
CIE-LCHlch(50.73, 53.38, 105.90°)
OKLaboklab(57.03% -0.046 0.111)
OKLCHoklch(57.03% 0.12 112.5)
XYZxyz(15.4728, 19.0375, 3.5212)
Luminance0.1904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E14 #19147E
analogous
#7E4E14 #797E14 #447E14
triadic
#797E14 #14797E #7E1479
tetradic
#797E14 #147E4E #19147E #7E1444
square
#797E14 #147E4E #19147E #7E1444
split-complementary
#797E14 #14447E #4E147E
monochromatic
#191A04 #46490C #797E14 #ACB31C #D6DE2E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797E14#FFFFFF#000000##000000
##797E141.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)
#897A1F
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e14;
/* rgb */ color: rgb(121, 126, 20);
/* oklch */ color: oklch(57.0% 0.120 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a35e',
    500: '#797e14',
    950: '#000000',
  },
}
SCSS
$custom: #797e14;
$custom-light: #a3a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#797e14",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 20
  },
  "hsl": {
    "h": 62.83,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57027,
    "c": 0.12019,
    "h": 112.5
  },
  "luminance": 0.19037
}

Semantic roles & 50–950 ramp

primary
#797E14
secondary
#403AB3
accent
#38EF41
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797E14

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

Preview Lab → · Contrast checker → · Palette generator →

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