#787221#787221

#787221 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.100 H 105.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#787221
RGBrgb(120, 114, 33)
HSLhsl(56, 57%, 30%)
HSVhsv(56, 73%, 47%)
CMYKcmyk(0%, 5%, 72.5%, 52.9%)
CIE-LABlab(47.16, -7.92, 43.45)
CIE-LCHlch(47.16, 44.17, 100.33°)
OKLaboklab(54.17% -0.0261 0.0968)
OKLCHoklch(54.17% 0.1 105.1)
XYZxyz(14.0381, 16.1380, 3.8140)
Luminance0.1614 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787221 #212778
analogous
#784621 #787221 #537821
triadic
#787221 #217872 #722178
tetradic
#787221 #217846 #212778 #782153
square
#787221 #217846 #212778 #782153
split-complementary
#787221 #215378 #462178
monochromatic
#181707 #484414 #787221 #A8A02E #CCC347

Accessibility & contrast

On white

4.97
#787221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#787221 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787221
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787221#FFFFFF#000000##FFFFFF
##7872211.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E14
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#816A62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787221;
/* rgb */ color: rgb(120, 114, 33);
/* oklch */ color: oklch(54.2% 0.100 105.1);
Tailwind
colors: {
  custom: {
    50: '#a29a62',
    500: '#787221',
    950: '#000000',
  },
}
SCSS
$custom: #787221;
$custom-light: #a29a62;
$custom-dark: #000000;
JSON
{
  "hex": "#787221",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 55.862,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.54172,
    "c": 0.10026,
    "h": 105.1
  },
  "luminance": 0.16138
}

Semantic roles & 50–950 ramp

primary
#787221
secondary
#4A50AB
accent
#52E048
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #787221

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

Preview Lab → · Contrast checker → · Palette generator →

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