#798246#798246

#798246 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.5% C 0.084 H 116.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#798246
RGBrgb(121, 130, 70)
HSLhsl(69, 30%, 39%)
HSVhsv(69, 46%, 51%)
CMYKcmyk(6.9%, 0%, 46.2%, 49%)
CIE-LABlab(52.37, -13.12, 31.24)
CIE-LCHlch(52.37, 33.88, 112.78°)
OKLaboklab(58.48% -0.0368 0.0752)
OKLCHoklch(58.48% 0.084 116.1)
XYZxyz(16.9734, 20.4726, 8.8506)
Luminance0.2047 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798246 #4F4682
analogous
#826D46 #798246 #5B8246
triadic
#798246 #467982 #824679
tetradic
#798246 #46826D #4F4682 #82465B
square
#798246 #46826D #4F4682 #82465B
split-complementary
#798246 #465B82 #6D4682
monochromatic
#2F321B #545A31 #798246 #9DA85D #B5BD85

Accessibility & contrast

On white

4.12
#798246 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#798246 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798246
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798246#FFFFFF#000000##000000
##7982461.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#897D41
Deuteranopia (green-blind)
#897D49
Tritanopia (blue-blind)
#7F7C74
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798246;
/* rgb */ color: rgb(121, 130, 70);
/* oklch */ color: oklch(58.5% 0.084 116.1);
Tailwind
colors: {
  custom: {
    50: '#a1a67b',
    500: '#798246',
    950: '#000000',
  },
}
SCSS
$custom: #798246;
$custom-light: #a1a67b;
$custom-dark: #000000;
JSON
{
  "hex": "#798246",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 70
  },
  "hsl": {
    "h": 69,
    "s": 30,
    "l": 39.216
  },
  "oklch": {
    "l": 0.58479,
    "c": 0.08369,
    "h": 116.1
  },
  "luminance": 0.20472
}

Semantic roles & 50–950 ramp

primary
#798246
secondary
#827BA9
accent
#62C671
background
#FAFAF7
surface
#F3F4EE
border
#CDCEC9
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #798246

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

Preview Lab → · Contrast checker → · Palette generator →

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