#798828#798828

#798828 is a mid, vivid yellow. Relative luminance 0.218; OKLCH L 59.6% C 0.120 H 117.9°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#798828
RGBrgb(121, 136, 40)
HSLhsl(69, 55%, 35%)
HSVhsv(69, 71%, 53%)
CMYKcmyk(11%, 0%, 70.6%, 46.7%)
CIE-LABlab(53.84, -18.93, 47.30)
CIE-LCHlch(53.84, 50.95, 111.81°)
OKLaboklab(59.56% -0.0562 0.1061)
OKLCHoklch(59.56% 0.12 117.9)
XYZxyz(17.0727, 21.8266, 5.3206)
Luminance0.2183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798828 #372888
analogous
#886728 #798828 #498828
triadic
#798828 #287988 #882879
tetradic
#798828 #288867 #372888 #882849
square
#798828 #288867 #372888 #882849
split-complementary
#798828 #284988 #672888
monochromatic
#25290C #4F591A #798828 #A3B736 #BDCF5B

Accessibility & contrast

On white

3.91
#798828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#798828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798828
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798828#FFFFFF#000000##000000
##7988281.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918019
Deuteranopia (green-blind)
#90812F
Tritanopia (blue-blind)
#808075
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #798828;
/* rgb */ color: rgb(121, 136, 40);
/* oklch */ color: oklch(59.6% 0.120 117.9);
Tailwind
colors: {
  custom: {
    50: '#a2aa68',
    500: '#798828',
    950: '#000000',
  },
}
SCSS
$custom: #798828;
$custom-light: #a2aa68;
$custom-dark: #000000;
JSON
{
  "hex": "#798828",
  "rgb": {
    "r": 121,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 69.375,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.5956,
    "c": 0.1201,
    "h": 117.9
  },
  "luminance": 0.21826
}

Semantic roles & 50–950 ramp

primary
#798828
secondary
#6658B4
accent
#4ADE61
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798828

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

Preview Lab → · Contrast checker → · Palette generator →

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