#797026#797026

#797026 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 53.8% C 0.094 H 102.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#797026
RGBrgb(121, 112, 38)
HSLhsl(53, 52%, 31%)
HSVhsv(53, 69%, 47%)
CMYKcmyk(0%, 7.4%, 68.6%, 52.5%)
CIE-LABlab(46.70, -6.03, 40.84)
CIE-LCHlch(46.70, 41.28, 98.39°)
OKLaboklab(53.85% -0.0202 0.0922)
OKLCHoklch(53.85% 0.094 102.3)
XYZxyz(14.0297, 15.7938, 4.1428)
Luminance0.1579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797026 #262F79
analogous
#794626 #797026 #587926
triadic
#797026 #267970 #702679
tetradic
#797026 #267946 #262F79 #792658
square
#797026 #267946 #262F79 #792658
split-complementary
#797026 #265879 #462679
monochromatic
#1C1A09 #4A4517 #797026 #A89B35 #C8BB51

Accessibility & contrast

On white

5.05
#797026 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#797026 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797026
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797026#FFFFFF#000000##FFFFFF
##7970261.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C1C
Deuteranopia (green-blind)
#7D702A
Tritanopia (blue-blind)
#826861
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797026;
/* rgb */ color: rgb(121, 112, 38);
/* oklch */ color: oklch(53.8% 0.094 102.3);
Tailwind
colors: {
  custom: {
    50: '#a29865',
    500: '#797026',
    950: '#000000',
  },
}
SCSS
$custom: #797026;
$custom-light: #a29865;
$custom-dark: #000000;
JSON
{
  "hex": "#797026",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 38
  },
  "hsl": {
    "h": 53.494,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53848,
    "c": 0.09436,
    "h": 102.3
  },
  "luminance": 0.15793
}

Semantic roles & 50–950 ramp

primary
#797026
secondary
#505AAB
accent
#5CDC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #797026

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

Preview Lab → · Contrast checker → · Palette generator →

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