#798C14#798C14

#798C14 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.4% C 0.136 H 119.1°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#798C14
RGBrgb(121, 140, 20)
HSLhsl(70, 75%, 31%)
HSVhsv(70, 86%, 55%)
CMYKcmyk(13.6%, 0%, 85.7%, 45.1%)
CIE-LABlab(54.94, -21.93, 54.95)
CIE-LCHlch(54.94, 59.16, 111.75°)
OKLaboklab(60.41% -0.0661 0.1188)
OKLCHoklch(60.41% 0.136 119.1)
XYZxyz(17.3899, 22.8717, 4.1603)
Luminance0.2287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C14 #27148C
analogous
#8C6314 #798C14 #3D8C14
triadic
#798C14 #14798C #8C1479
tetradic
#798C14 #148C63 #27148C #8C143D
square
#798C14 #148C63 #27148C #8C143D
split-complementary
#798C14 #143D8C #63148C
monochromatic
#1C2105 #4B560C #798C14 #A7C21C #C8E338

Accessibility & contrast

On white

3.77
#798C14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#798C14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C14
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C14#FFFFFF#000000##000000
##798C141.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968300
Deuteranopia (green-blind)
#948422
Tritanopia (blue-blind)
#818477
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798c14;
/* rgb */ color: rgb(121, 140, 20);
/* oklch */ color: oklch(60.4% 0.136 119.1);
Tailwind
colors: {
  custom: {
    50: '#a3ad60',
    500: '#798c14',
    950: '#000000',
  },
}
SCSS
$custom: #798c14;
$custom-light: #a3ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#798c14",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 20
  },
  "hsl": {
    "h": 69.5,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.60409,
    "c": 0.13596,
    "h": 119.1
  },
  "luminance": 0.22872
}

Semantic roles & 50–950 ramp

primary
#798C14
secondary
#513CC0
accent
#36F254
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798C14

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

Preview Lab → · Contrast checker → · Palette generator →

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