#798626#798626

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

Color values

HEX#798626
RGBrgb(121, 134, 38)
HSLhsl(68, 56%, 34%)
HSVhsv(68, 72%, 53%)
CMYKcmyk(9.7%, 0%, 71.6%, 47.5%)
CIE-LABlab(53.23, -18.01, 47.49)
CIE-LCHlch(53.23, 50.79, 110.77°)
OKLaboklab(59.06% -0.0538 0.1062)
OKLCHoklch(59.06% 0.119 116.9)
XYZxyz(16.7605, 21.2553, 5.0531)
Luminance0.2125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798626 #332686
analogous
#866326 #798626 #498626
triadic
#798626 #267986 #862679
tetradic
#798626 #268663 #332686 #862649
square
#798626 #268663 #332686 #862649
split-complementary
#798626 #264986 #632686
monochromatic
#23270B #4E5618 #798626 #A4B634 #BFCF57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798626#FFFFFF#000000##000000
##7986261.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)
#8F7F16
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#817E73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #798626;
/* rgb */ color: rgb(121, 134, 38);
/* oklch */ color: oklch(59.1% 0.119 116.9);
Tailwind
colors: {
  custom: {
    50: '#a2a967',
    500: '#798626',
    950: '#000000',
  },
}
SCSS
$custom: #798626;
$custom-light: #a2a967;
$custom-dark: #000000;
JSON
{
  "hex": "#798626",
  "rgb": {
    "r": 121,
    "g": 134,
    "b": 38
  },
  "hsl": {
    "h": 68.125,
    "s": 55.814,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59061,
    "c": 0.11906,
    "h": 116.9
  },
  "luminance": 0.21255
}

Semantic roles & 50–950 ramp

primary
#798626
secondary
#6154B4
accent
#49DF5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798626

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

Preview Lab → · Contrast checker → · Palette generator →

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