#797C14#797C14

#797C14 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.118 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797C14
RGBrgb(121, 124, 20)
HSLhsl(62, 72%, 28%)
HSVhsv(62, 84%, 49%)
CMYKcmyk(2.4%, 0%, 83.9%, 51.4%)
CIE-LABlab(50.13, -13.55, 50.82)
CIE-LCHlch(50.13, 52.59, 104.93°)
OKLaboklab(56.55% -0.0431 0.1099)
OKLCHoklch(56.55% 0.118 111.4)
XYZxyz(15.2196, 18.5312, 3.4368)
Luminance0.1853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C14 #17147C
analogous
#7C4B14 #797C14 #457C14
triadic
#797C14 #14797C #7C1479
tetradic
#797C14 #147C4B #17147C #7C1445
square
#797C14 #147C4B #17147C #7C1445
split-complementary
#797C14 #14457C #4B147C
monochromatic
#1A1A04 #46470B #797C14 #ACB11D #D8DD2D

Accessibility & contrast

On white

4.46
#797C14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797C14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C14
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C14#FFFFFF#000000##000000
##797C141.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#87781E
Tritanopia (blue-blind)
#827469
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c14;
/* rgb */ color: rgb(121, 124, 20);
/* oklch */ color: oklch(56.5% 0.118 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a15d',
    500: '#797c14',
    950: '#000000',
  },
}
SCSS
$custom: #797c14;
$custom-light: #a3a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#797c14",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 20
  },
  "hsl": {
    "h": 61.731,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56549,
    "c": 0.11805,
    "h": 111.4
  },
  "luminance": 0.18531
}

Semantic roles & 50–950 ramp

primary
#797C14
secondary
#3E3AB2
accent
#39EF3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797C14

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

Preview Lab → · Contrast checker → · Palette generator →

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