#798F27#798F27

#798F27 is a mid, vivid yellow-green. Relative luminance 0.239; OKLCH L 61.2% C 0.130 H 120.8°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#798F27
RGBrgb(121, 143, 39)
HSLhsl(73, 57%, 36%)
HSVhsv(73, 73%, 56%)
CMYKcmyk(15.4%, 0%, 72.7%, 43.9%)
CIE-LABlab(55.94, -22.58, 49.79)
CIE-LCHlch(55.94, 54.67, 114.39°)
OKLaboklab(61.25% -0.0664 0.1112)
OKLCHoklch(61.25% 0.13 120.8)
XYZxyz(18.0741, 23.8564, 5.5716)
Luminance0.2386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F27 #3D278F
analogous
#8F7127 #798F27 #458F27
triadic
#798F27 #27798F #8F2779
tetradic
#798F27 #278F71 #3D278F #8F2745
square
#798F27 #278F71 #3D278F #8F2745
split-complementary
#798F27 #27458F #71278F
monochromatic
#282F0D #505F1A #798F27 #A2BF34 #BAD35D

Accessibility & contrast

On white

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

On black

5.77
#798F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F27
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F27#FFFFFF#000000##000000
##798F271.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988615
Deuteranopia (green-blind)
#958630
Tritanopia (blue-blind)
#80877B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f27;
/* rgb */ color: rgb(121, 143, 39);
/* oklch */ color: oklch(61.2% 0.130 120.8);
Tailwind
colors: {
  custom: {
    50: '#a3af68',
    500: '#798f27',
    950: '#000000',
  },
}
SCSS
$custom: #798f27;
$custom-light: #a3af68;
$custom-dark: #000000;
JSON
{
  "hex": "#798f27",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 72.692,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61249,
    "c": 0.12951,
    "h": 120.8
  },
  "luminance": 0.23856
}

Semantic roles & 50–950 ramp

primary
#798F27
secondary
#6E5AB8
accent
#47E068
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798F27

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

Preview Lab → · Contrast checker → · Palette generator →

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