#797121#797121

#797121 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.0% C 0.099 H 103.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#797121
RGBrgb(121, 113, 33)
HSLhsl(55, 57%, 30%)
HSVhsv(55, 73%, 47%)
CMYKcmyk(0%, 6.6%, 72.7%, 52.5%)
CIE-LABlab(46.96, -6.89, 43.28)
CIE-LCHlch(46.96, 43.83, 99.05°)
OKLaboklab(54.04% -0.0232 0.0964)
OKLCHoklch(54.04% 0.099 103.5)
XYZxyz(14.0654, 15.9856, 3.7832)
Luminance0.1598 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797121 #212979
analogous
#794521 #797121 #557921
triadic
#797121 #217971 #712179
tetradic
#797121 #217945 #212979 #792155
square
#797121 #217945 #212979 #792155
split-complementary
#797121 #215579 #452179
monochromatic
#191707 #494414 #797121 #A99E2E #CDC147

Accessibility & contrast

On white

5.00
#797121 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#797121 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797121
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797121#FFFFFF#000000##FFFFFF
##7971211.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D15
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#826961
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797121;
/* rgb */ color: rgb(121, 113, 33);
/* oklch */ color: oklch(54.0% 0.099 103.5);
Tailwind
colors: {
  custom: {
    50: '#a39962',
    500: '#797121',
    950: '#000000',
  },
}
SCSS
$custom: #797121;
$custom-light: #a39962;
$custom-dark: #000000;
JSON
{
  "hex": "#797121",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 33
  },
  "hsl": {
    "h": 54.545,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54036,
    "c": 0.09919,
    "h": 103.5
  },
  "luminance": 0.15985
}

Semantic roles & 50–950 ramp

primary
#797121
secondary
#4A53AC
accent
#55E047
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #797121

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

Preview Lab → · Contrast checker → · Palette generator →

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