#798342#798342

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

Color values

HEX#798342
RGBrgb(121, 131, 66)
HSLhsl(69, 33%, 39%)
HSVhsv(69, 50%, 51%)
CMYKcmyk(7.6%, 0%, 49.6%, 48.6%)
CIE-LABlab(52.61, -14.10, 33.65)
CIE-LCHlch(52.61, 36.49, 112.73°)
OKLaboklab(58.66% -0.0399 0.0802)
OKLCHoklch(58.66% 0.09 116.4)
XYZxyz(16.9850, 20.6911, 8.2522)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798342 #4C4283
analogous
#836C42 #798342 #588342
triadic
#798342 #427983 #834279
tetradic
#798342 #42836C #4C4283 #834258
square
#798342 #42836C #4C4283 #834258
split-complementary
#798342 #425883 #6C4283
monochromatic
#2E3219 #535A2D #798342 #9EAB58 #B5BF80

Accessibility & contrast

On white

4.09
#798342 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#798342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798342
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798342#FFFFFF#000000##000000
##7983421.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7D3C
Deuteranopia (green-blind)
#8A7E45
Tritanopia (blue-blind)
#7F7D74
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798342;
/* rgb */ color: rgb(121, 131, 66);
/* oklch */ color: oklch(58.7% 0.090 116.4);
Tailwind
colors: {
  custom: {
    50: '#a1a778',
    500: '#798342',
    950: '#000000',
  },
}
SCSS
$custom: #798342;
$custom-light: #a1a778;
$custom-dark: #000000;
JSON
{
  "hex": "#798342",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 69.231,
    "s": 32.995,
    "l": 38.627
  },
  "oklch": {
    "l": 0.58655,
    "c": 0.08962,
    "h": 116.4
  },
  "luminance": 0.20691
}

Semantic roles & 50–950 ramp

primary
#798342
secondary
#7F77AA
accent
#5FC96F
background
#FAFAF7
surface
#F3F4ED
border
#CDCEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #798342

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

Preview Lab → · Contrast checker → · Palette generator →

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