#798F1C#798F1C

#798F1C is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.136 H 120.4°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#798F1C
RGBrgb(121, 143, 28)
HSLhsl(71, 67%, 34%)
HSVhsv(71, 80%, 56%)
CMYKcmyk(15.4%, 0%, 80.4%, 43.9%)
CIE-LABlab(55.88, -23.14, 53.54)
CIE-LCHlch(55.88, 58.33, 113.37°)
OKLaboklab(61.18% -0.0689 0.1172)
OKLCHoklch(61.18% 0.136 120.4)
XYZxyz(17.9176, 23.7938, 4.7471)
Luminance0.2379 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F1C #321C8F
analogous
#8F6B1C #798F1C #3F8F1C
triadic
#798F1C #1C798F #8F1C79
tetradic
#798F1C #1C8F6B #321C8F #8F1C3F
square
#798F1C #1C8F6B #321C8F #8F1C3F
split-complementary
#798F1C #1C3F8F #6B1C8F
monochromatic
#222908 #4E5C12 #798F1C #A4C226 #C0DC4A

Accessibility & contrast

On white

3.65
#798F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#798F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F1C
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F1C#FFFFFF#000000##000000
##798F1C1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968628
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f1c;
/* rgb */ color: rgb(121, 143, 28);
/* oklch */ color: oklch(61.2% 0.136 120.4);
Tailwind
colors: {
  custom: {
    50: '#a3af63',
    500: '#798f1c',
    950: '#000000',
  },
}
SCSS
$custom: #798f1c;
$custom-light: #a3af63;
$custom-dark: #000000;
JSON
{
  "hex": "#798f1c",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 71.478,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61178,
    "c": 0.13593,
    "h": 120.4
  },
  "luminance": 0.23794
}

Semantic roles & 50–950 ramp

primary
#798F1C
secondary
#5F49BE
accent
#3EEA5F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #798F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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