#797122#797122

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

Color values

HEX#797122
RGBrgb(121, 113, 34)
HSLhsl(54, 56%, 30%)
HSVhsv(54, 72%, 47%)
CMYKcmyk(0%, 6.6%, 71.9%, 52.5%)
CIE-LABlab(46.96, -6.83, 42.87)
CIE-LCHlch(46.96, 43.41, 99.06°)
OKLaboklab(54.04% -0.0229 0.0957)
OKLCHoklch(54.04% 0.098 103.5)
XYZxyz(14.0796, 15.9913, 3.8580)
Luminance0.1599 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797122 #222A79
analogous
#794522 #797122 #557922
triadic
#797122 #227971 #712279
tetradic
#797122 #227945 #222A79 #792255
square
#797122 #227945 #222A79 #792255
split-complementary
#797122 #225579 #452279
monochromatic
#191807 #494415 #797122 #A99E2F #CCC049

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797122#FFFFFF#000000##FFFFFF
##7971221.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)
#7B6D16
Deuteranopia (green-blind)
#7E7127
Tritanopia (blue-blind)
#826961
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797122;
/* rgb */ color: rgb(121, 113, 34);
/* oklch */ color: oklch(54.0% 0.098 103.5);
Tailwind
colors: {
  custom: {
    50: '#a39962',
    500: '#797122',
    950: '#000000',
  },
}
SCSS
$custom: #797122;
$custom-light: #a39962;
$custom-dark: #000000;
JSON
{
  "hex": "#797122",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 34
  },
  "hsl": {
    "h": 54.483,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54044,
    "c": 0.09845,
    "h": 103.5
  },
  "luminance": 0.15991
}

Semantic roles & 50–950 ramp

primary
#797122
secondary
#4B54AC
accent
#56DF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #797122

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

Preview Lab → · Contrast checker → · Palette generator →

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