#798D14#798D14

#798D14 is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 60.7% C 0.137 H 119.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#798D14
RGBrgb(121, 141, 20)
HSLhsl(70, 75%, 32%)
HSVhsv(70, 86%, 55%)
CMYKcmyk(14.2%, 0%, 85.8%, 44.7%)
CIE-LABlab(55.24, -22.43, 55.21)
CIE-LCHlch(55.24, 59.59, 112.11°)
OKLaboklab(60.65% -0.0675 0.1194)
OKLCHoklch(60.65% 0.137 119.5)
XYZxyz(17.5367, 23.1653, 4.2092)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D14 #28148D
analogous
#8D6514 #798D14 #3D8D14
triadic
#798D14 #14798D #8D1479
tetradic
#798D14 #148D65 #28148D #8D143D
square
#798D14 #148D65 #28148D #8D143D
split-complementary
#798D14 #143D8D #65148D
monochromatic
#1D2205 #4B570C #798D14 #A7C31C #C7E339

Accessibility & contrast

On white

3.73
#798D14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#798D14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D14
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D14#FFFFFF#000000##000000
##798D141.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#948522
Tritanopia (blue-blind)
#818578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d14;
/* rgb */ color: rgb(121, 141, 20);
/* oklch */ color: oklch(60.7% 0.137 119.5);
Tailwind
colors: {
  custom: {
    50: '#a3ae60',
    500: '#798d14',
    950: '#000000',
  },
}
SCSS
$custom: #798d14;
$custom-light: #a3ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#798d14",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 20
  },
  "hsl": {
    "h": 69.917,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60653,
    "c": 0.13713,
    "h": 119.5
  },
  "luminance": 0.23165
}

Semantic roles & 50–950 ramp

primary
#798D14
secondary
#523CC1
accent
#36F255
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798D14

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

Preview Lab → · Contrast checker → · Palette generator →

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