#798F2B#798F2B

#798F2B is a mid, vivid yellow-green. Relative luminance 0.239; OKLCH L 61.3% C 0.127 H 121.0°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#798F2B
RGBrgb(121, 143, 43)
HSLhsl(73, 54%, 36%)
HSVhsv(73, 70%, 56%)
CMYKcmyk(15.4%, 0%, 69.9%, 43.9%)
CIE-LABlab(55.97, -22.33, 48.24)
CIE-LCHlch(55.97, 53.16, 114.84°)
OKLaboklab(61.28% -0.0653 0.1086)
OKLCHoklch(61.28% 0.127 121)
XYZxyz(18.1439, 23.8843, 5.9393)
Luminance0.2388 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F2B #412B8F
analogous
#8F732B #798F2B #478F2B
triadic
#798F2B #2B798F #8F2B79
tetradic
#798F2B #2B8F73 #412B8F #8F2B47
square
#798F2B #2B8F73 #412B8F #8F2B47
split-complementary
#798F2B #2B478F #732B8F
monochromatic
#29310F #51601D #798F2B #A1BE39 #B9D064

Accessibility & contrast

On white

3.64
#798F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#798F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F2B
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F2B#FFFFFF#000000##000000
##798F2B1.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#98861C
Deuteranopia (green-blind)
#958633
Tritanopia (blue-blind)
#80887B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f2b;
/* rgb */ color: rgb(121, 143, 43);
/* oklch */ color: oklch(61.3% 0.127 121.0);
Tailwind
colors: {
  custom: {
    50: '#a2af6b',
    500: '#798f2b',
    950: '#000000',
  },
}
SCSS
$custom: #798f2b;
$custom-light: #a2af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#798f2b",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 73.2,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61281,
    "c": 0.12673,
    "h": 121
  },
  "luminance": 0.23884
}

Semantic roles & 50–950 ramp

primary
#798F2B
secondary
#725FB7
accent
#4BDD6B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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