#797524#797524

#797524 is a mid, moderate yellow. Relative luminance 0.169; OKLCH L 55.0% C 0.101 H 106.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#797524
RGBrgb(121, 117, 36)
HSLhsl(57, 54%, 31%)
HSVhsv(57, 70%, 47%)
CMYKcmyk(0%, 3.3%, 70.2%, 52.5%)
CIE-LABlab(48.15, -8.96, 43.21)
CIE-LCHlch(48.15, 44.13, 101.71°)
OKLaboklab(55% -0.0287 0.0968)
OKLCHoklch(55% 0.101 106.5)
XYZxyz(14.5654, 16.9154, 4.1665)
Luminance0.1691 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797524 #242879
analogous
#794A24 #797524 #527924
triadic
#797524 #247975 #752479
tetradic
#797524 #24794A #242879 #792452
square
#797524 #24794A #242879 #792452
split-complementary
#797524 #245279 #4A2479
monochromatic
#1B1A08 #4A4716 #797524 #A8A332 #CAC44D

Accessibility & contrast

On white

4.79
#797524 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#797524 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797524
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797524#FFFFFF#000000##FFFFFF
##7975241.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7018
Deuteranopia (green-blind)
#817429
Tritanopia (blue-blind)
#826D65
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797524;
/* rgb */ color: rgb(121, 117, 36);
/* oklch */ color: oklch(55.0% 0.101 106.5);
Tailwind
colors: {
  custom: {
    50: '#a29c64',
    500: '#797524',
    950: '#000000',
  },
}
SCSS
$custom: #797524;
$custom-light: #a29c64;
$custom-dark: #000000;
JSON
{
  "hex": "#797524",
  "rgb": {
    "r": 121,
    "g": 117,
    "b": 36
  },
  "hsl": {
    "h": 57.176,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54997,
    "c": 0.10101,
    "h": 106.5
  },
  "luminance": 0.16915
}

Semantic roles & 50–950 ramp

primary
#797524
secondary
#4D52AC
accent
#51DE4A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797524

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

Preview Lab → · Contrast checker → · Palette generator →

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