#797724#797724

#797724 is a mid, moderate yellow. Relative luminance 0.174; OKLCH L 55.5% C 0.103 H 108.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#797724
RGBrgb(121, 119, 36)
HSLhsl(59, 54%, 31%)
HSVhsv(59, 70%, 47%)
CMYKcmyk(0%, 1.7%, 70.2%, 52.5%)
CIE-LABlab(48.74, -10.07, 43.81)
CIE-LCHlch(48.74, 44.95, 102.94°)
OKLaboklab(55.47% -0.0318 0.0981)
OKLCHoklch(55.47% 0.103 108)
XYZxyz(14.8009, 17.3864, 4.2450)
Luminance0.1739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797724 #242679
analogous
#794C24 #797724 #507924
triadic
#797724 #247977 #772479
tetradic
#797724 #24794C #242679 #792450
square
#797724 #24794C #242679 #792450
split-complementary
#797724 #245079 #4C2479
monochromatic
#1B1A08 #4A4916 #797724 #A8A532 #CAC74D

Accessibility & contrast

On white

4.69
#797724 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#797724 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797724
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797724#FFFFFF#000000##FFFFFF
##7977241.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817218
Deuteranopia (green-blind)
#82752A
Tritanopia (blue-blind)
#826F66
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797724;
/* rgb */ color: rgb(121, 119, 36);
/* oklch */ color: oklch(55.5% 0.103 108.0);
Tailwind
colors: {
  custom: {
    50: '#a29e64',
    500: '#797724',
    950: '#000000',
  },
}
SCSS
$custom: #797724;
$custom-light: #a29e64;
$custom-dark: #000000;
JSON
{
  "hex": "#797724",
  "rgb": {
    "r": 121,
    "g": 119,
    "b": 36
  },
  "hsl": {
    "h": 58.588,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55467,
    "c": 0.10313,
    "h": 108
  },
  "luminance": 0.17386
}

Semantic roles & 50–950 ramp

primary
#797724
secondary
#4D4FAC
accent
#4EDE4A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797724

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

Preview Lab → · Contrast checker → · Palette generator →

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