#798E26#798E26

#798E26 is a mid, vivid yellow-green. Relative luminance 0.236; OKLCH L 61.0% C 0.129 H 120.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#798E26
RGBrgb(121, 142, 38)
HSLhsl(72, 58%, 35%)
HSVhsv(72, 73%, 56%)
CMYKcmyk(14.8%, 0%, 73.2%, 44.3%)
CIE-LABlab(55.64, -22.13, 49.87)
CIE-LCHlch(55.64, 54.56, 113.93°)
OKLaboklab(61% -0.0652 0.1112)
OKLCHoklch(61% 0.129 120.4)
XYZxyz(17.9083, 23.5509, 5.4357)
Luminance0.2355 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E26 #3B268E
analogous
#8E6F26 #798E26 #458E26
triadic
#798E26 #26798E #8E2679
tetradic
#798E26 #268E6F #3B268E #8E2645
square
#798E26 #268E6F #3B268E #8E2645
split-complementary
#798E26 #26458E #6F268E
monochromatic
#272D0C #505E19 #798E26 #A2BE33 #BBD35B

Accessibility & contrast

On white

3.68
#798E26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#798E26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E26
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E26#FFFFFF#000000##000000
##798E261.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978613
Deuteranopia (green-blind)
#95852F
Tritanopia (blue-blind)
#80867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e26;
/* rgb */ color: rgb(121, 142, 38);
/* oklch */ color: oklch(61.0% 0.129 120.4);
Tailwind
colors: {
  custom: {
    50: '#a3af68',
    500: '#798e26',
    950: '#000000',
  },
}
SCSS
$custom: #798e26;
$custom-light: #a3af68;
$custom-dark: #000000;
JSON
{
  "hex": "#798e26",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 38
  },
  "hsl": {
    "h": 72.115,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60998,
    "c": 0.12892,
    "h": 120.4
  },
  "luminance": 0.23551
}

Semantic roles & 50–950 ramp

primary
#798E26
secondary
#6B58B8
accent
#47E166
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798E26

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

Preview Lab → · Contrast checker → · Palette generator →

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