#798C18#798C18

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

Color values

HEX#798C18
RGBrgb(121, 140, 24)
HSLhsl(70, 71%, 32%)
HSVhsv(70, 83%, 55%)
CMYKcmyk(13.6%, 0%, 82.9%, 45.1%)
CIE-LABlab(54.96, -21.78, 53.90)
CIE-LCHlch(54.96, 58.13, 112.01°)
OKLaboklab(60.43% -0.0655 0.1172)
OKLCHoklch(60.43% 0.134 119.2)
XYZxyz(17.4285, 22.8872, 4.3635)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C18 #2B188C
analogous
#8C6518 #798C18 #3F8C18
triadic
#798C18 #18798C #8C1879
tetradic
#798C18 #188C65 #2B188C #8C183F
square
#798C18 #188C65 #2B188C #8C183F
split-complementary
#798C18 #183F8C #65188C
monochromatic
#1F2406 #4C580F #798C18 #A6C021 #C4DE40

Accessibility & contrast

On white

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

On black

5.58
#798C18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C18
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C18#FFFFFF#000000##000000
##798C181.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#938424
Tritanopia (blue-blind)
#818477
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c18;
/* rgb */ color: rgb(121, 140, 24);
/* oklch */ color: oklch(60.4% 0.134 119.2);
Tailwind
colors: {
  custom: {
    50: '#a3ad61',
    500: '#798c18',
    950: '#000000',
  },
}
SCSS
$custom: #798c18;
$custom-light: #a3ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#798c18",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 24
  },
  "hsl": {
    "h": 69.828,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60427,
    "c": 0.13428,
    "h": 119.2
  },
  "luminance": 0.22887
}

Semantic roles & 50–950 ramp

primary
#798C18
secondary
#5641BF
accent
#3AED58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798C18

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

Preview Lab → · Contrast checker → · Palette generator →

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