#798E2B#798E2B

#798E2B is a mid, vivid yellow-green. Relative luminance 0.236; OKLCH L 61.0% C 0.125 H 120.6°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#798E2B
RGBrgb(121, 142, 43)
HSLhsl(73, 54%, 36%)
HSVhsv(73, 70%, 56%)
CMYKcmyk(14.8%, 0%, 69.7%, 44.3%)
CIE-LABlab(55.67, -21.82, 47.93)
CIE-LCHlch(55.67, 52.67, 114.48°)
OKLaboklab(61.04% -0.0639 0.108)
OKLCHoklch(61.04% 0.125 120.6)
XYZxyz(17.9945, 23.5854, 5.8895)
Luminance0.2359 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E2B #402B8E
analogous
#8E722B #798E2B #488E2B
triadic
#798E2B #2B798E #8E2B79
tetradic
#798E2B #2B8E72 #402B8E #8E2B48
square
#798E2B #2B8E72 #402B8E #8E2B48
split-complementary
#798E2B #2B488E #722B8E
monochromatic
#29300F #515F1D #798E2B #A1BD39 #B9D063

Accessibility & contrast

On white

3.67
#798E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#798E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E2B
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E2B#FFFFFF#000000##000000
##798E2B1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861C
Deuteranopia (green-blind)
#948633
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e2b;
/* rgb */ color: rgb(121, 142, 43);
/* oklch */ color: oklch(61.0% 0.125 120.6);
Tailwind
colors: {
  custom: {
    50: '#a2af6a',
    500: '#798e2b',
    950: '#000000',
  },
}
SCSS
$custom: #798e2b;
$custom-light: #a2af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#798e2b",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 72.727,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61038,
    "c": 0.12546,
    "h": 120.6
  },
  "luminance": 0.23585
}

Semantic roles & 50–950 ramp

primary
#798E2B
secondary
#715FB6
accent
#4BDD6A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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