#798426#798426

#798426 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.117 H 115.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#798426
RGBrgb(121, 132, 38)
HSLhsl(67, 55%, 33%)
HSVhsv(67, 71%, 52%)
CMYKcmyk(8.3%, 0%, 71.2%, 48.2%)
CIE-LABlab(52.63, -16.96, 46.89)
CIE-LCHlch(52.63, 49.86, 109.89°)
OKLaboklab(58.58% -0.0509 0.1049)
OKLCHoklch(58.58% 0.117 115.9)
XYZxyz(16.4867, 20.7077, 4.9618)
Luminance0.2071 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798426 #312684
analogous
#846026 #798426 #4A8426
triadic
#798426 #267984 #842679
tetradic
#798426 #268460 #312684 #84264A
square
#798426 #268460 #312684 #84264A
split-complementary
#798426 #264A84 #602684
monochromatic
#22250B #4D5418 #798426 #A5B434 #C0CE56

Accessibility & contrast

On white

4.08
#798426 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#798426 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798426
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798426#FFFFFF#000000##000000
##7984261.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D17
Deuteranopia (green-blind)
#8D7E2D
Tritanopia (blue-blind)
#817C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798426;
/* rgb */ color: rgb(121, 132, 38);
/* oklch */ color: oklch(58.6% 0.117 115.9);
Tailwind
colors: {
  custom: {
    50: '#a2a767',
    500: '#798426',
    950: '#000000',
  },
}
SCSS
$custom: #798426;
$custom-light: #a2a767;
$custom-dark: #000000;
JSON
{
  "hex": "#798426",
  "rgb": {
    "r": 121,
    "g": 132,
    "b": 38
  },
  "hsl": {
    "h": 67.021,
    "s": 55.294,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5858,
    "c": 0.11663,
    "h": 115.9
  },
  "luminance": 0.20707
}

Semantic roles & 50–950 ramp

primary
#798426
secondary
#5E53B3
accent
#49DF5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798426

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

Preview Lab → · Contrast checker → · Palette generator →

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