#798C2C#798C2C

#798C2C is a mid, vivid yellow-green. Relative luminance 0.230; OKLCH L 60.6% C 0.122 H 119.8°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#798C2C
RGBrgb(121, 140, 44)
HSLhsl(72, 52%, 36%)
HSVhsv(72, 69%, 55%)
CMYKcmyk(13.6%, 0%, 68.6%, 45.1%)
CIE-LABlab(55.08, -20.73, 46.91)
CIE-LCHlch(55.08, 51.29, 113.85°)
OKLaboklab(60.56% -0.0608 0.106)
OKLCHoklch(60.56% 0.122 119.8)
XYZxyz(17.7182, 23.0030, 5.8890)
Luminance0.2300 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C2C #3F2C8C
analogous
#8C6F2C #798C2C #498C2C
triadic
#798C2C #2C798C #8C2C79
tetradic
#798C2C #2C8C6F #3F2C8C #8C2C49
square
#798C2C #2C8C6F #3F2C8C #8C2C49
split-complementary
#798C2C #2C498C #6F2C8C
monochromatic
#292F0F #515D1D #798C2C #A1BB3B #B9CE64

Accessibility & contrast

On white

3.75
#798C2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#798C2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C2C
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C2C#FFFFFF#000000##000000
##798C2C1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841E
Deuteranopia (green-blind)
#938433
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c2c;
/* rgb */ color: rgb(121, 140, 44);
/* oklch */ color: oklch(60.6% 0.122 119.8);
Tailwind
colors: {
  custom: {
    50: '#a2ad6b',
    500: '#798c2c',
    950: '#000000',
  },
}
SCSS
$custom: #798c2c;
$custom-light: #a2ad6b;
$custom-dark: #000000;
JSON
{
  "hex": "#798c2c",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 44
  },
  "hsl": {
    "h": 71.875,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60561,
    "c": 0.12216,
    "h": 119.8
  },
  "luminance": 0.23003
}

Semantic roles & 50–950 ramp

primary
#798C2C
secondary
#705FB5
accent
#4CDC69
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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