#798D1C#798D1C

#798D1C is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.7% C 0.134 H 119.7°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#798D1C
RGBrgb(121, 141, 28)
HSLhsl(71, 67%, 33%)
HSVhsv(71, 80%, 55%)
CMYKcmyk(14.2%, 0%, 80.1%, 44.7%)
CIE-LABlab(55.28, -22.13, 52.99)
CIE-LCHlch(55.28, 57.43, 112.66°)
OKLaboklab(60.69% -0.0661 0.116)
OKLCHoklch(60.69% 0.134 119.7)
XYZxyz(17.6200, 23.1986, 4.6479)
Luminance0.2320 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D1C #301C8D
analogous
#8D681C #798D1C #418D1C
triadic
#798D1C #1C798D #8D1C79
tetradic
#798D1C #1C8D68 #301C8D #8D1C41
square
#798D1C #1C8D68 #301C8D #8D1C41
split-complementary
#798D1C #1C418D #681C8D
monochromatic
#212708 #4D5A12 #798D1C #A5C026 #C1DB49

Accessibility & contrast

On white

3.72
#798D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#798D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D1C
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D1C#FFFFFF#000000##000000
##798D1C1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798d1c;
/* rgb */ color: rgb(121, 141, 28);
/* oklch */ color: oklch(60.7% 0.134 119.7);
Tailwind
colors: {
  custom: {
    50: '#a3ae63',
    500: '#798d1c',
    950: '#000000',
  },
}
SCSS
$custom: #798d1c;
$custom-light: #a3ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#798d1c",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 70.619,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60691,
    "c": 0.13354,
    "h": 119.7
  },
  "luminance": 0.23199
}

Semantic roles & 50–950 ramp

primary
#798D1C
secondary
#5D48BD
accent
#3EEA5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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