#797621#797621

#797621 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.2% C 0.104 H 107.4°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#797621
RGBrgb(121, 118, 33)
HSLhsl(58, 57%, 30%)
HSVhsv(58, 73%, 47%)
CMYKcmyk(0%, 2.5%, 72.7%, 52.5%)
CIE-LABlab(48.43, -9.68, 44.74)
CIE-LCHlch(48.43, 45.77, 102.21°)
OKLaboklab(55.21% -0.0311 0.0995)
OKLCHoklch(55.21% 0.104 107.4)
XYZxyz(14.6387, 17.1321, 3.9743)
Luminance0.1713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797621 #212479
analogous
#794A21 #797621 #507921
triadic
#797621 #217976 #762179
tetradic
#797621 #21794A #212479 #792150
square
#797621 #21794A #212479 #792150
split-complementary
#797621 #215079 #4A2179
monochromatic
#191807 #494714 #797621 #A9A52E #CDC847

Accessibility & contrast

On white

4.74
#797621 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#797621 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797621
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797621#FFFFFF#000000##FFFFFF
##7976211.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807113
Deuteranopia (green-blind)
#827427
Tritanopia (blue-blind)
#826E65
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797621;
/* rgb */ color: rgb(121, 118, 33);
/* oklch */ color: oklch(55.2% 0.104 107.4);
Tailwind
colors: {
  custom: {
    50: '#a39d62',
    500: '#797621',
    950: '#000000',
  },
}
SCSS
$custom: #797621;
$custom-light: #a39d62;
$custom-dark: #000000;
JSON
{
  "hex": "#797621",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 33
  },
  "hsl": {
    "h": 57.955,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.55207,
    "c": 0.10424,
    "h": 107.4
  },
  "luminance": 0.17132
}

Semantic roles & 50–950 ramp

primary
#797621
secondary
#4A4DAC
accent
#4DE047
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797621

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

Preview Lab → · Contrast checker → · Palette generator →

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