#798C2B#798C2B

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

Color values

HEX#798C2B
RGBrgb(121, 140, 43)
HSLhsl(72, 53%, 36%)
HSVhsv(72, 69%, 55%)
CMYKcmyk(13.6%, 0%, 69.3%, 45.1%)
CIE-LABlab(55.07, -20.80, 47.32)
CIE-LCHlch(55.07, 51.69, 113.73°)
OKLaboklab(60.55% -0.0611 0.1067)
OKLCHoklch(60.55% 0.123 119.8)
XYZxyz(17.6996, 22.9956, 5.7912)
Luminance0.2300 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C2B #3E2B8C
analogous
#8C6E2B #798C2B #488C2B
triadic
#798C2B #2B798C #8C2B79
tetradic
#798C2B #2B8C6E #3E2B8C #8C2B48
square
#798C2B #2B8C6E #3E2B8C #8C2B48
split-complementary
#798C2B #2B488C #6E2B8C
monochromatic
#282E0E #515D1D #798C2B #A1BB39 #BACF62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798C2B#FFFFFF#000000##000000
##798C2B1.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)
#95841D
Deuteranopia (green-blind)
#938432
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c2b;
/* rgb */ color: rgb(121, 140, 43);
/* oklch */ color: oklch(60.6% 0.123 119.8);
Tailwind
colors: {
  custom: {
    50: '#a2ad6a',
    500: '#798c2b',
    950: '#000000',
  },
}
SCSS
$custom: #798c2b;
$custom-light: #a2ad6a;
$custom-dark: #000000;
JSON
{
  "hex": "#798c2b",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 43
  },
  "hsl": {
    "h": 71.753,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60553,
    "c": 0.12292,
    "h": 119.8
  },
  "luminance": 0.22996
}

Semantic roles & 50–950 ramp

primary
#798C2B
secondary
#6F5EB5
accent
#4BDC68
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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