#798B2C#798B2C

#798B2C is a mid, vivid yellow-green. Relative luminance 0.227; OKLCH L 60.3% C 0.121 H 119.4°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#798B2C
RGBrgb(121, 139, 44)
HSLhsl(71, 52%, 36%)
HSVhsv(71, 68%, 55%)
CMYKcmyk(12.9%, 0%, 68.3%, 45.5%)
CIE-LABlab(54.77, -20.22, 46.60)
CIE-LCHlch(54.77, 50.80, 113.46°)
OKLaboklab(60.32% -0.0594 0.1053)
OKLCHoklch(60.32% 0.121 119.4)
XYZxyz(17.5727, 22.7121, 5.8405)
Luminance0.2271 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B2C #3E2C8B
analogous
#8B6D2C #798B2C #498B2C
triadic
#798B2C #2C798B #8B2C79
tetradic
#798B2C #2C8B6D #3E2C8B #8B2C49
square
#798B2C #2C8B6D #3E2C8B #8B2C49
split-complementary
#798B2C #2C498B #6D2C8B
monochromatic
#282E0F #515D1D #798B2C #A1B93B #BACE64

Accessibility & contrast

On white

3.79
#798B2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#798B2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B2C
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B2C#FFFFFF#000000##000000
##798B2C1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831E
Deuteranopia (green-blind)
#928333
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b2c;
/* rgb */ color: rgb(121, 139, 44);
/* oklch */ color: oklch(60.3% 0.121 119.4);
Tailwind
colors: {
  custom: {
    50: '#a2ac6b',
    500: '#798b2c',
    950: '#000000',
  },
}
SCSS
$custom: #798b2c;
$custom-light: #a2ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#798b2c",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 44
  },
  "hsl": {
    "h": 71.368,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60319,
    "c": 0.1209,
    "h": 119.4
  },
  "luminance": 0.22712
}

Semantic roles & 50–950 ramp

primary
#798B2C
secondary
#6F5FB4
accent
#4CDB68
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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