#797822#797822

#797822 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.7% C 0.106 H 108.7°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#797822
RGBrgb(121, 120, 34)
HSLhsl(59, 56%, 30%)
HSVhsv(59, 72%, 47%)
CMYKcmyk(0%, 0.8%, 71.9%, 52.5%)
CIE-LABlab(49.02, -10.73, 44.92)
CIE-LCHlch(49.02, 46.18, 103.44°)
OKLaboklab(55.69% -0.0339 0.1001)
OKLCHoklch(55.69% 0.106 108.7)
XYZxyz(14.8909, 17.6138, 4.1285)
Luminance0.1761 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797822 #222379
analogous
#794C22 #797822 #4F7922
triadic
#797822 #227978 #782279
tetradic
#797822 #22794C #222379 #79224F
square
#797822 #22794C #222379 #79224F
split-complementary
#797822 #224F79 #4C2279
monochromatic
#191907 #494915 #797822 #A9A72F #CCCA49

Accessibility & contrast

On white

4.64
#797822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#797822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797822
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797822#FFFFFF#000000##FFFFFF
##7978221.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827314
Deuteranopia (green-blind)
#837628
Tritanopia (blue-blind)
#827067
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797822;
/* rgb */ color: rgb(121, 120, 34);
/* oklch */ color: oklch(55.7% 0.106 108.7);
Tailwind
colors: {
  custom: {
    50: '#a39e63',
    500: '#797822',
    950: '#000000',
  },
}
SCSS
$custom: #797822;
$custom-light: #a39e63;
$custom-dark: #000000;
JSON
{
  "hex": "#797822",
  "rgb": {
    "r": 121,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 59.31,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.55687,
    "c": 0.10567,
    "h": 108.7
  },
  "luminance": 0.17613
}

Semantic roles & 50–950 ramp

primary
#797822
secondary
#4B4CAC
accent
#4ADF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797822

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

Preview Lab → · Contrast checker → · Palette generator →

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