#798326#798326

#798326 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.3% C 0.115 H 115.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#798326
RGBrgb(121, 131, 38)
HSLhsl(66, 55%, 33%)
HSVhsv(66, 71%, 51%)
CMYKcmyk(7.6%, 0%, 71%, 48.6%)
CIE-LABlab(52.33, -16.43, 46.59)
CIE-LCHlch(52.33, 49.40, 109.43°)
OKLaboklab(58.34% -0.0494 0.1043)
OKLCHoklch(58.34% 0.115 115.4)
XYZxyz(16.3517, 20.4377, 4.9168)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798326 #302683
analogous
#835E26 #798326 #4A8326
triadic
#798326 #267983 #832679
tetradic
#798326 #26835E #302683 #83264A
square
#798326 #26835E #302683 #83264A
split-complementary
#798326 #264A83 #5E2683
monochromatic
#21240A #4D5418 #798326 #A5B234 #C1CE56

Accessibility & contrast

On white

4.13
#798326 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#798326 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798326
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798326#FFFFFF#000000##000000
##7983261.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C17
Deuteranopia (green-blind)
#8C7E2D
Tritanopia (blue-blind)
#817B71
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798326;
/* rgb */ color: rgb(121, 131, 38);
/* oklch */ color: oklch(58.3% 0.115 115.4);
Tailwind
colors: {
  custom: {
    50: '#a2a667',
    500: '#798326',
    950: '#000000',
  },
}
SCSS
$custom: #798326;
$custom-light: #a2a667;
$custom-dark: #000000;
JSON
{
  "hex": "#798326",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 38
  },
  "hsl": {
    "h": 66.452,
    "s": 55.03,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5834,
    "c": 0.11543,
    "h": 115.4
  },
  "luminance": 0.20437
}

Semantic roles & 50–950 ramp

primary
#798326
secondary
#5D52B2
accent
#49DE59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798326

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

Preview Lab → · Contrast checker → · Palette generator →

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