#798918#798918

#798918 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.7% C 0.131 H 117.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#798918
RGBrgb(121, 137, 24)
HSLhsl(68, 70%, 32%)
HSVhsv(68, 82%, 54%)
CMYKcmyk(11.7%, 0%, 82.5%, 46.3%)
CIE-LABlab(54.05, -20.25, 53.10)
CIE-LCHlch(54.05, 56.83, 110.88°)
OKLaboklab(59.7% -0.0612 0.1155)
OKLCHoklch(59.7% 0.131 117.9)
XYZxyz(16.9961, 22.0224, 4.2194)
Luminance0.2202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798918 #281889
analogous
#896118 #798918 #418918
triadic
#798918 #187989 #891879
tetradic
#798918 #188961 #281889 #891841
square
#798918 #188961 #281889 #891841
split-complementary
#798918 #184189 #611889
monochromatic
#1D2106 #4B550F #798918 #A7BD21 #C7DD3E

Accessibility & contrast

On white

3.89
#798918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#798918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798918
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798918#FFFFFF#000000##000000
##7989181.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#918224
Tritanopia (blue-blind)
#818175
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #798918;
/* rgb */ color: rgb(121, 137, 24);
/* oklch */ color: oklch(59.7% 0.131 117.9);
Tailwind
colors: {
  custom: {
    50: '#a3ab61',
    500: '#798918',
    950: '#000000',
  },
}
SCSS
$custom: #798918;
$custom-light: #a3ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#798918",
  "rgb": {
    "r": 121,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 68.496,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59698,
    "c": 0.13077,
    "h": 117.9
  },
  "luminance": 0.22022
}

Semantic roles & 50–950 ramp

primary
#798918
secondary
#5240BD
accent
#3BED54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798918

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

Preview Lab → · Contrast checker → · Palette generator →

#798918 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva