#798C17#798C17

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

Color values

HEX#798C17
RGBrgb(121, 140, 23)
HSLhsl(70, 72%, 32%)
HSVhsv(70, 84%, 55%)
CMYKcmyk(13.6%, 0%, 83.6%, 45.1%)
CIE-LABlab(54.95, -21.82, 54.17)
CIE-LCHlch(54.95, 58.40, 111.94°)
OKLaboklab(60.42% -0.0656 0.1177)
OKLCHoklch(60.42% 0.135 119.2)
XYZxyz(17.4183, 22.8831, 4.3097)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C17 #2A178C
analogous
#8C6517 #798C17 #3E8C17
triadic
#798C17 #17798C #8C1779
tetradic
#798C17 #178C65 #2A178C #8C173E
square
#798C17 #178C65 #2A178C #8C173E
split-complementary
#798C17 #173E8C #65178C
monochromatic
#1E2306 #4C570E #798C17 #A6C120 #C5DF3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798C17#FFFFFF#000000##000000
##798C171.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)
#948424
Tritanopia (blue-blind)
#818477
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798c17;
/* rgb */ color: rgb(121, 140, 23);
/* oklch */ color: oklch(60.4% 0.135 119.2);
Tailwind
colors: {
  custom: {
    50: '#a3ad61',
    500: '#798c17',
    950: '#000000',
  },
}
SCSS
$custom: #798c17;
$custom-light: #a3ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#798c17",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 23
  },
  "hsl": {
    "h": 69.744,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60422,
    "c": 0.13473,
    "h": 119.2
  },
  "luminance": 0.22883
}

Semantic roles & 50–950 ramp

primary
#798C17
secondary
#543FBF
accent
#39EF57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798C17

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

Preview Lab → · Contrast checker → · Palette generator →

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