#797024#797024

#797024 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 53.8% C 0.096 H 102.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#797024
RGBrgb(121, 112, 36)
HSLhsl(54, 54%, 31%)
HSVhsv(54, 70%, 47%)
CMYKcmyk(0%, 7.4%, 70.2%, 52.5%)
CIE-LABlab(46.69, -6.15, 41.72)
CIE-LCHlch(46.69, 42.17, 98.39°)
OKLaboklab(53.83% -0.0208 0.0937)
OKLCHoklch(53.83% 0.096 102.5)
XYZxyz(13.9983, 15.7812, 3.9775)
Luminance0.1578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797024 #242D79
analogous
#794524 #797024 #577924
triadic
#797024 #247970 #702479
tetradic
#797024 #247945 #242D79 #792457
square
#797024 #247945 #242D79 #792457
split-complementary
#797024 #245779 #452479
monochromatic
#1B1908 #4A4416 #797024 #A89C32 #CABD4D

Accessibility & contrast

On white

5.05
#797024 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#797024 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797024
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797024#FFFFFF#000000##FFFFFF
##7970241.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C19
Deuteranopia (green-blind)
#7D7029
Tritanopia (blue-blind)
#826861
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797024;
/* rgb */ color: rgb(121, 112, 36);
/* oklch */ color: oklch(53.8% 0.096 102.5);
Tailwind
colors: {
  custom: {
    50: '#a29863',
    500: '#797024',
    950: '#000000',
  },
}
SCSS
$custom: #797024;
$custom-light: #a29863;
$custom-dark: #000000;
JSON
{
  "hex": "#797024",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 36
  },
  "hsl": {
    "h": 53.647,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53829,
    "c": 0.09595,
    "h": 102.5
  },
  "luminance": 0.15781
}

Semantic roles & 50–950 ramp

primary
#797024
secondary
#4D57AC
accent
#5ADE4A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #797024

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

Preview Lab → · Contrast checker → · Palette generator →

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