#797626#797626

#797626 is a mid, moderate yellow. Relative luminance 0.172; OKLCH L 55.2% C 0.101 H 107.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#797626
RGBrgb(121, 118, 38)
HSLhsl(58, 52%, 31%)
HSVhsv(58, 69%, 47%)
CMYKcmyk(0%, 2.5%, 68.6%, 52.5%)
CIE-LABlab(48.46, -9.39, 42.66)
CIE-LCHlch(48.46, 43.68, 102.41°)
OKLaboklab(55.25% -0.0297 0.096)
OKLCHoklch(55.25% 0.101 107.2)
XYZxyz(14.7140, 17.1622, 4.3709)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797626 #262979
analogous
#794C26 #797626 #527926
triadic
#797626 #267976 #762679
tetradic
#797626 #26794C #262979 #792652
square
#797626 #26794C #262979 #792652
split-complementary
#797626 #265279 #4C2679
monochromatic
#1C1B09 #4A4917 #797626 #A8A335 #C8C451

Accessibility & contrast

On white

4.74
#797626 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#797626 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797626
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797626#FFFFFF#000000##FFFFFF
##7976261.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711B
Deuteranopia (green-blind)
#82752B
Tritanopia (blue-blind)
#826E66
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797626;
/* rgb */ color: rgb(121, 118, 38);
/* oklch */ color: oklch(55.2% 0.101 107.2);
Tailwind
colors: {
  custom: {
    50: '#a29d65',
    500: '#797626',
    950: '#000000',
  },
}
SCSS
$custom: #797626;
$custom-light: #a29d65;
$custom-dark: #000000;
JSON
{
  "hex": "#797626",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 38
  },
  "hsl": {
    "h": 57.831,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55249,
    "c": 0.10052,
    "h": 107.2
  },
  "luminance": 0.17162
}

Semantic roles & 50–950 ramp

primary
#797626
secondary
#5053AB
accent
#51DC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797626

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

Preview Lab → · Contrast checker → · Palette generator →

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