#798628#798628

#798628 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.1% C 0.118 H 116.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#798628
RGBrgb(121, 134, 40)
HSLhsl(68, 54%, 34%)
HSVhsv(68, 70%, 53%)
CMYKcmyk(9.7%, 0%, 70.1%, 47.5%)
CIE-LABlab(53.24, -17.89, 46.69)
CIE-LCHlch(53.24, 50.00, 110.96°)
OKLaboklab(59.08% -0.0533 0.1049)
OKLCHoklch(59.08% 0.118 116.9)
XYZxyz(16.7936, 21.2685, 5.2276)
Luminance0.2127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798628 #352886
analogous
#866428 #798628 #4A8628
triadic
#798628 #287986 #862879
tetradic
#798628 #288664 #352886 #86284A
square
#798628 #288664 #352886 #86284A
split-complementary
#798628 #284A86 #642886
monochromatic
#24280C #4E571A #798628 #A4B536 #BECE5B

Accessibility & contrast

On white

4.00
#798628 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#798628 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798628
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798628#FFFFFF#000000##000000
##7986281.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1A
Deuteranopia (green-blind)
#8E802F
Tritanopia (blue-blind)
#817E73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #798628;
/* rgb */ color: rgb(121, 134, 40);
/* oklch */ color: oklch(59.1% 0.118 116.9);
Tailwind
colors: {
  custom: {
    50: '#a2a968',
    500: '#798628',
    950: '#000000',
  },
}
SCSS
$custom: #798628;
$custom-light: #a2a968;
$custom-dark: #000000;
JSON
{
  "hex": "#798628",
  "rgb": {
    "r": 121,
    "g": 134,
    "b": 40
  },
  "hsl": {
    "h": 68.298,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59078,
    "c": 0.11763,
    "h": 116.9
  },
  "luminance": 0.21268
}

Semantic roles & 50–950 ramp

primary
#798628
secondary
#6357B3
accent
#4ADD5F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798628

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

Preview Lab → · Contrast checker → · Palette generator →

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