#798F2D#798F2D

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

Color values

HEX#798F2D
RGBrgb(121, 143, 45)
HSLhsl(73, 52%, 37%)
HSVhsv(73, 69%, 56%)
CMYKcmyk(15.4%, 0%, 68.5%, 43.9%)
CIE-LABlab(55.99, -22.19, 47.43)
CIE-LCHlch(55.99, 52.37, 115.08°)
OKLaboklab(61.3% -0.0647 0.1072)
OKLCHoklch(61.3% 0.125 121.1)
XYZxyz(18.1815, 23.8993, 6.1373)
Luminance0.2390 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F2D #432D8F
analogous
#8F742D #798F2D #488F2D
triadic
#798F2D #2D798F #8F2D79
tetradic
#798F2D #2D8F74 #432D8F #8F2D48
square
#798F2D #2D8F74 #432D8F #8F2D48
split-complementary
#798F2D #2D488F #742D8F
monochromatic
#2A3210 #52601E #798F2D #A0BE3C #B8CF67

Accessibility & contrast

On white

3.63
#798F2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798F2D#FFFFFF#000000##000000
##798F2D1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871F
Deuteranopia (green-blind)
#958634
Tritanopia (blue-blind)
#80887B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f2d;
/* rgb */ color: rgb(121, 143, 45);
/* oklch */ color: oklch(61.3% 0.125 121.1);
Tailwind
colors: {
  custom: {
    50: '#a2af6c',
    500: '#798f2d',
    950: '#000000',
  },
}
SCSS
$custom: #798f2d;
$custom-light: #a2af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#798f2d",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 73.469,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61298,
    "c": 0.12525,
    "h": 121.1
  },
  "luminance": 0.23899
}

Semantic roles & 50–950 ramp

primary
#798F2D
secondary
#7562B6
accent
#4CDC6C
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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