#787121#787121

#787121 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 53.9% C 0.099 H 104.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#787121
RGBrgb(120, 113, 33)
HSLhsl(55, 57%, 30%)
HSVhsv(55, 73%, 47%)
CMYKcmyk(0%, 5.8%, 72.5%, 52.9%)
CIE-LABlab(46.86, -7.36, 43.16)
CIE-LCHlch(46.86, 43.78, 99.68°)
OKLaboklab(53.94% -0.0245 0.0962)
OKLCHoklch(53.94% 0.099 104.3)
XYZxyz(13.9259, 15.9137, 3.7766)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787121 #212878
analogous
#784521 #787121 #547821
triadic
#787121 #217871 #712178
tetradic
#787121 #217845 #212878 #782154
square
#787121 #217845 #212878 #782154
split-complementary
#787121 #215478 #452178
monochromatic
#181707 #484414 #787121 #A89E2E #CCC247

Accessibility & contrast

On white

5.02
#787121 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#787121 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787121
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787121#FFFFFF#000000##FFFFFF
##7871211.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787121;
/* rgb */ color: rgb(120, 113, 33);
/* oklch */ color: oklch(53.9% 0.099 104.3);
Tailwind
colors: {
  custom: {
    50: '#a29962',
    500: '#787121',
    950: '#000000',
  },
}
SCSS
$custom: #787121;
$custom-light: #a29962;
$custom-dark: #000000;
JSON
{
  "hex": "#787121",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 33
  },
  "hsl": {
    "h": 55.172,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.53938,
    "c": 0.09927,
    "h": 104.3
  },
  "luminance": 0.15913
}

Semantic roles & 50–950 ramp

primary
#787121
secondary
#4A52AB
accent
#54E048
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #787121

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

Preview Lab → · Contrast checker → · Palette generator →

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