#797224#797224

#797224 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.3% C 0.098 H 104.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#797224
RGBrgb(121, 114, 36)
HSLhsl(55, 54%, 31%)
HSVhsv(55, 70%, 47%)
CMYKcmyk(0%, 5.8%, 70.2%, 52.5%)
CIE-LABlab(47.27, -7.28, 42.32)
CIE-LCHlch(47.27, 42.94, 99.76°)
OKLaboklab(54.3% -0.024 0.095)
OKLCHoklch(54.3% 0.098 104.2)
XYZxyz(14.2215, 16.2275, 4.0518)
Luminance0.1623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797224 #242B79
analogous
#794724 #797224 #557924
triadic
#797224 #247972 #722479
tetradic
#797224 #247947 #242B79 #792455
square
#797224 #247947 #242B79 #792455
split-complementary
#797224 #245579 #472479
monochromatic
#1B1908 #4A4616 #797224 #A89E32 #CAC04D

Accessibility & contrast

On white

4.95
#797224 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#797224 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797224
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797224#FFFFFF#000000##FFFFFF
##7972241.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E19
Deuteranopia (green-blind)
#7F7229
Tritanopia (blue-blind)
#826A62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797224;
/* rgb */ color: rgb(121, 114, 36);
/* oklch */ color: oklch(54.3% 0.098 104.2);
Tailwind
colors: {
  custom: {
    50: '#a29a64',
    500: '#797224',
    950: '#000000',
  },
}
SCSS
$custom: #797224;
$custom-light: #a29a64;
$custom-dark: #000000;
JSON
{
  "hex": "#797224",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 36
  },
  "hsl": {
    "h": 55.059,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54295,
    "c": 0.09793,
    "h": 104.2
  },
  "luminance": 0.16227
}

Semantic roles & 50–950 ramp

primary
#797224
secondary
#4D55AC
accent
#56DE4A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797224

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

Preview Lab → · Contrast checker → · Palette generator →

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