#797726#797726

#797726 is a mid, moderate yellow. Relative luminance 0.174; OKLCH L 55.5% C 0.102 H 107.9°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#797726
RGBrgb(121, 119, 38)
HSLhsl(59, 52%, 31%)
HSVhsv(59, 69%, 47%)
CMYKcmyk(0%, 1.7%, 68.6%, 52.5%)
CIE-LABlab(48.76, -9.94, 42.97)
CIE-LCHlch(48.76, 44.10, 103.03°)
OKLaboklab(55.48% -0.0313 0.0967)
OKLCHoklch(55.48% 0.102 107.9)
XYZxyz(14.8324, 17.3990, 4.4104)
Luminance0.1740 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797726 #262879
analogous
#794D26 #797726 #517926
triadic
#797726 #267977 #772679
tetradic
#797726 #26794D #262879 #792651
square
#797726 #26794D #262879 #792651
split-complementary
#797726 #265179 #4D2679
monochromatic
#1C1B09 #4A4917 #797726 #A8A535 #C8C551

Accessibility & contrast

On white

4.69
#797726 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#797726 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797726
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797726#FFFFFF#000000##FFFFFF
##7977261.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721B
Deuteranopia (green-blind)
#82752B
Tritanopia (blue-blind)
#826F67
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797726;
/* rgb */ color: rgb(121, 119, 38);
/* oklch */ color: oklch(55.5% 0.102 107.9);
Tailwind
colors: {
  custom: {
    50: '#a29e65',
    500: '#797726',
    950: '#000000',
  },
}
SCSS
$custom: #797726;
$custom-light: #a29e65;
$custom-dark: #000000;
JSON
{
  "hex": "#797726",
  "rgb": {
    "r": 121,
    "g": 119,
    "b": 38
  },
  "hsl": {
    "h": 58.554,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55484,
    "c": 0.1016,
    "h": 107.9
  },
  "luminance": 0.17399
}

Semantic roles & 50–950 ramp

primary
#797726
secondary
#5052AB
accent
#50DC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797726

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

Preview Lab → · Contrast checker → · Palette generator →

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