#797922#797922

#797922 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 55.9% C 0.107 H 109.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#797922
RGBrgb(121, 121, 34)
HSLhsl(60, 56%, 30%)
HSVhsv(60, 72%, 47%)
CMYKcmyk(0%, 0%, 71.9%, 52.5%)
CIE-LABlab(49.32, -11.28, 45.21)
CIE-LCHlch(49.32, 46.60, 104.01°)
OKLaboklab(55.92% -0.0355 0.1007)
OKLCHoklch(55.92% 0.107 109.4)
XYZxyz(15.0118, 17.8556, 4.1688)
Luminance0.1785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797922 #222279
analogous
#794D22 #797922 #4D7922
triadic
#797922 #227979 #792279
tetradic
#797922 #22794D #222279 #79224D
square
#797922 #22794D #222279 #79224D
split-complementary
#797922 #224D79 #4D2279
monochromatic
#191907 #494915 #797922 #A9A92F #CCCC49

Accessibility & contrast

On white

4.59
#797922 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#797922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797922
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797922#FFFFFF#000000##FFFFFF
##7979221.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837414
Deuteranopia (green-blind)
#847728
Tritanopia (blue-blind)
#827168
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797922;
/* rgb */ color: rgb(121, 121, 34);
/* oklch */ color: oklch(55.9% 0.107 109.4);
Tailwind
colors: {
  custom: {
    50: '#a39f63',
    500: '#797922',
    950: '#000000',
  },
}
SCSS
$custom: #797922;
$custom-light: #a39f63;
$custom-dark: #000000;
JSON
{
  "hex": "#797922",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 34
  },
  "hsl": {
    "h": 60,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.55923,
    "c": 0.10675,
    "h": 109.4
  },
  "luminance": 0.17855
}

Semantic roles & 50–950 ramp

primary
#797922
secondary
#4B4BAC
accent
#48DF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797922

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

Preview Lab → · Contrast checker → · Palette generator →

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