#798346#798346

#798346 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.7% C 0.085 H 116.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#798346
RGBrgb(121, 131, 70)
HSLhsl(70, 30%, 39%)
HSVhsv(70, 47%, 51%)
CMYKcmyk(7.6%, 0%, 46.6%, 48.6%)
CIE-LABlab(52.66, -13.66, 31.60)
CIE-LCHlch(52.66, 34.43, 113.38°)
OKLaboklab(58.72% -0.0383 0.076)
OKLCHoklch(58.72% 0.085 116.7)
XYZxyz(17.1071, 20.7399, 8.8952)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798346 #504683
analogous
#836F46 #798346 #5B8346
triadic
#798346 #467983 #834679
tetradic
#798346 #46836F #504683 #83465B
square
#798346 #46836F #504683 #83465B
split-complementary
#798346 #465B83 #6F4683
monochromatic
#2F331B #545B31 #798346 #9CA95D #B5BE85

Accessibility & contrast

On white

4.08
#798346 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#798346 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798346
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798346#FFFFFF#000000##000000
##7983461.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D41
Deuteranopia (green-blind)
#897E49
Tritanopia (blue-blind)
#7F7D75
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798346;
/* rgb */ color: rgb(121, 131, 70);
/* oklch */ color: oklch(58.7% 0.085 116.7);
Tailwind
colors: {
  custom: {
    50: '#a1a77b',
    500: '#798346',
    950: '#000000',
  },
}
SCSS
$custom: #798346;
$custom-light: #a1a77b;
$custom-dark: #000000;
JSON
{
  "hex": "#798346",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 70
  },
  "hsl": {
    "h": 69.836,
    "s": 30.348,
    "l": 39.412
  },
  "oklch": {
    "l": 0.58716,
    "c": 0.0851,
    "h": 116.7
  },
  "luminance": 0.2074
}

Semantic roles & 50–950 ramp

primary
#798346
secondary
#837BA9
accent
#61C772
background
#FAFAF7
surface
#F3F4EE
border
#CDCEC9
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #798346

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

Preview Lab → · Contrast checker → · Palette generator →

#798346 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva