#797F14#797F14

#797F14 is a mid, vivid yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.121 H 113.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797F14
RGBrgb(121, 127, 20)
HSLhsl(63, 73%, 29%)
HSVhsv(63, 84%, 50%)
CMYKcmyk(4.7%, 0%, 84.3%, 50.2%)
CIE-LABlab(51.03, -15.16, 51.59)
CIE-LCHlch(51.03, 53.77, 106.37°)
OKLaboklab(57.27% -0.0475 0.1116)
OKLCHoklch(57.27% 0.121 113.1)
XYZxyz(15.6013, 19.2946, 3.5641)
Luminance0.1929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F14 #1A147F
analogous
#7F5014 #797F14 #447F14
triadic
#797F14 #14797F #7F1479
tetradic
#797F14 #147F50 #1A147F #7F1444
square
#797F14 #147F50 #1A147F #7F1444
split-complementary
#797F14 #14447F #50147F
monochromatic
#191A04 #474A0C #797F14 #ABB41C #D4DE2F

Accessibility & contrast

On white

4.32
#797F14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#797F14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F14
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F14#FFFFFF#000000##000000
##797F141.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897B1F
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f14;
/* rgb */ color: rgb(121, 127, 20);
/* oklch */ color: oklch(57.3% 0.121 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a35e',
    500: '#797f14',
    950: '#000000',
  },
}
SCSS
$custom: #797f14;
$custom-light: #a3a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#797f14",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 20
  },
  "hsl": {
    "h": 63.364,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.57266,
    "c": 0.12127,
    "h": 113.1
  },
  "luminance": 0.19294
}

Semantic roles & 50–950 ramp

primary
#797F14
secondary
#413BB4
accent
#38EF43
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797F14

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

Preview Lab → · Contrast checker → · Palette generator →

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