#798C1C#798C1C

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

Color values

HEX#798C1C
RGBrgb(121, 140, 28)
HSLhsl(70, 67%, 33%)
HSVhsv(70, 80%, 55%)
CMYKcmyk(13.6%, 0%, 80%, 45.1%)
CIE-LABlab(54.97, -21.62, 52.72)
CIE-LCHlch(54.97, 56.98, 112.30°)
OKLaboklab(60.45% -0.0647 0.1155)
OKLCHoklch(60.45% 0.132 119.3)
XYZxyz(17.4732, 22.9051, 4.5990)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C1C #2F1C8C
analogous
#8C671C #798C1C #418C1C
triadic
#798C1C #1C798C #8C1C79
tetradic
#798C1C #1C8C67 #2F1C8C #8C1C41
square
#798C1C #1C8C67 #2F1C8C #8C1C41
split-complementary
#798C1C #1C418C #671C8C
monochromatic
#212608 #4D5912 #798C1C #A5BF26 #C2DA48

Accessibility & contrast

On white

3.76
#798C1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798C1C#FFFFFF#000000##000000
##798C1C1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798c1c;
/* rgb */ color: rgb(121, 140, 28);
/* oklch */ color: oklch(60.4% 0.132 119.3);
Tailwind
colors: {
  custom: {
    50: '#a3ad63',
    500: '#798c1c',
    950: '#000000',
  },
}
SCSS
$custom: #798c1c;
$custom-light: #a3ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#798c1c",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 70.179,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60448,
    "c": 0.13235,
    "h": 119.3
  },
  "luminance": 0.22905
}

Semantic roles & 50–950 ramp

primary
#798C1C
secondary
#5B48BC
accent
#3EEA5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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