#797622#797622

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

Color values

HEX#797622
RGBrgb(121, 118, 34)
HSLhsl(58, 56%, 30%)
HSVhsv(58, 72%, 47%)
CMYKcmyk(0%, 2.5%, 71.9%, 52.5%)
CIE-LABlab(48.43, -9.63, 44.33)
CIE-LCHlch(48.43, 45.37, 102.25°)
OKLaboklab(55.22% -0.0308 0.0988)
OKLCHoklch(55.22% 0.104 107.3)
XYZxyz(14.6529, 17.1378, 4.0491)
Luminance0.1714 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797622 #222579
analogous
#794A22 #797622 #507922
triadic
#797622 #227976 #762279
tetradic
#797622 #22794A #222579 #792250
square
#797622 #22794A #222579 #792250
split-complementary
#797622 #225079 #4A2279
monochromatic
#191907 #494715 #797622 #A9A52F #CCC749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797622#FFFFFF#000000##FFFFFF
##7976221.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)
#807115
Deuteranopia (green-blind)
#827428
Tritanopia (blue-blind)
#826E65
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797622;
/* rgb */ color: rgb(121, 118, 34);
/* oklch */ color: oklch(55.2% 0.104 107.3);
Tailwind
colors: {
  custom: {
    50: '#a39d63',
    500: '#797622',
    950: '#000000',
  },
}
SCSS
$custom: #797622;
$custom-light: #a39d63;
$custom-dark: #000000;
JSON
{
  "hex": "#797622",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 34
  },
  "hsl": {
    "h": 57.931,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.55215,
    "c": 0.10354,
    "h": 107.3
  },
  "luminance": 0.17137
}

Semantic roles & 50–950 ramp

primary
#797622
secondary
#4B4EAC
accent
#4EDF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797622

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

Preview Lab → · Contrast checker → · Palette generator →

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