#798726#798726

#798726 is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.3% C 0.120 H 117.4°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#798726
RGBrgb(121, 135, 38)
HSLhsl(69, 56%, 34%)
HSVhsv(69, 72%, 53%)
CMYKcmyk(10.4%, 0%, 71.9%, 47.1%)
CIE-LABlab(53.53, -18.53, 47.78)
CIE-LCHlch(53.53, 51.25, 111.20°)
OKLaboklab(59.3% -0.0553 0.1068)
OKLCHoklch(59.3% 0.12 117.4)
XYZxyz(16.8994, 21.5330, 5.0994)
Luminance0.2153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798726 #342687
analogous
#876526 #798726 #498726
triadic
#798726 #267987 #872679
tetradic
#798726 #268765 #342687 #872649
square
#798726 #268765 #342687 #872649
split-complementary
#798726 #264987 #652687
monochromatic
#23270B #4E5719 #798726 #A4B733 #BED058

Accessibility & contrast

On white

3.96
#798726 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#798726 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798726
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798726#FFFFFF#000000##000000
##7987261.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#908016
Deuteranopia (green-blind)
#8F802E
Tritanopia (blue-blind)
#817F74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798726;
/* rgb */ color: rgb(121, 135, 38);
/* oklch */ color: oklch(59.3% 0.120 117.4);
Tailwind
colors: {
  custom: {
    50: '#a2a967',
    500: '#798726',
    950: '#000000',
  },
}
SCSS
$custom: #798726;
$custom-light: #a2a967;
$custom-dark: #000000;
JSON
{
  "hex": "#798726",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 38
  },
  "hsl": {
    "h": 68.66,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59303,
    "c": 0.12028,
    "h": 117.4
  },
  "luminance": 0.21533
}

Semantic roles & 50–950 ramp

primary
#798726
secondary
#6254B5
accent
#48DF5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798726

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

Preview Lab → · Contrast checker → · Palette generator →

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