#798B23#798B23

#798B23 is a mid, vivid yellow-green. Relative luminance 0.227; OKLCH L 60.2% C 0.127 H 119.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#798B23
RGBrgb(121, 139, 35)
HSLhsl(70, 60%, 34%)
HSVhsv(70, 75%, 55%)
CMYKcmyk(12.9%, 0%, 74.8%, 45.5%)
CIE-LABlab(54.71, -20.77, 50.09)
CIE-LCHlch(54.71, 54.22, 112.52°)
OKLaboklab(60.25% -0.0618 0.1111)
OKLCHoklch(60.25% 0.127 119.1)
XYZxyz(17.4215, 22.6517, 5.0442)
Luminance0.2265 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B23 #35238B
analogous
#8B6923 #798B23 #458B23
triadic
#798B23 #23798B #8B2379
tetradic
#798B23 #238B69 #35238B #8B2345
square
#798B23 #238B69 #35238B #8B2345
split-complementary
#798B23 #23458B #69238B
monochromatic
#24290A #4E5A17 #798B23 #A4BC2F #BED454

Accessibility & contrast

On white

3.80
#798B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#798B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B23
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B23#FFFFFF#000000##000000
##798B231.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830E
Deuteranopia (green-blind)
#92832C
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b23;
/* rgb */ color: rgb(121, 139, 35);
/* oklch */ color: oklch(60.2% 0.127 119.1);
Tailwind
colors: {
  custom: {
    50: '#a3ac66',
    500: '#798b23',
    950: '#000000',
  },
}
SCSS
$custom: #798b23;
$custom-light: #a3ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#798b23",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 70.385,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60248,
    "c": 0.12715,
    "h": 119.1
  },
  "luminance": 0.22652
}

Semantic roles & 50–950 ramp

primary
#798B23
secondary
#6352B8
accent
#45E360
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B23

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

Preview Lab → · Contrast checker → · Palette generator →

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