#798E5F#798E5F

#798E5F is a mid, moderate yellow-green. Relative luminance 0.242; OKLCH L 61.8% C 0.072 H 127.9°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#798E5F
RGBrgb(121, 142, 95)
HSLhsl(87, 20%, 46%)
HSVhsv(87, 33%, 56%)
CMYKcmyk(14.8%, 0%, 33.1%, 44.3%)
CIE-LABlab(56.32, -16.23, 22.64)
CIE-LCHlch(56.32, 27.85, 125.63°)
OKLaboklab(61.78% -0.044 0.0565)
OKLCHoklch(61.78% 0.072 127.9)
XYZxyz(19.6234, 24.2370, 14.4686)
Luminance0.2424 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E5F #745F8E
analogous
#8E8C5F #798E5F #628E5F
triadic
#798E5F #5F798E #8E5F79
tetradic
#798E5F #5F8E8C #745F8E #8E5F62
square
#798E5F #5F8E8C #745F8E #8E5F62
split-complementary
#798E5F #5F628E #8C5F8E
monochromatic
#3B452E #5A6946 #798E5F #97AA80 #B5C3A5

Accessibility & contrast

On white

3.59
#798E5F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#798E5F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E5F
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E5F#FFFFFF#000000##000000
##798E5F1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#93885C
Deuteranopia (green-blind)
#908761
Tritanopia (blue-blind)
#7B8A82
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #798e5f;
/* rgb */ color: rgb(121, 142, 95);
/* oklch */ color: oklch(61.8% 0.072 127.9);
Tailwind
colors: {
  custom: {
    50: '#a0af8d',
    500: '#798e5f',
    950: '#000000',
  },
}
SCSS
$custom: #798e5f;
$custom-light: #a0af8d;
$custom-dark: #000000;
JSON
{
  "hex": "#798e5f",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 95
  },
  "hsl": {
    "h": 86.809,
    "s": 19.831,
    "l": 46.471
  },
  "oklch": {
    "l": 0.61775,
    "c": 0.07165,
    "h": 127.9
  },
  "luminance": 0.24237
}

Semantic roles & 50–950 ramp

primary
#798E5F
secondary
#A398B1
accent
#6BBC90
background
#F9FAF8
surface
#F2F4F0
border
#CCCECB
text
#0F100C
muted
#7E7F7D

Preview Lab

Preview with #798E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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