#787216#787216

#787216 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.1% C 0.107 H 105.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#787216
RGBrgb(120, 114, 22)
HSLhsl(56, 69%, 28%)
HSVhsv(56, 82%, 47%)
CMYKcmyk(0%, 5%, 81.7%, 52.9%)
CIE-LABlab(47.09, -8.45, 47.50)
CIE-LCHlch(47.09, 48.24, 100.08°)
OKLaboklab(54.1% -0.0287 0.1032)
OKLCHoklch(54.1% 0.107 105.5)
XYZxyz(13.9085, 16.0862, 3.1312)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787216 #161C78
analogous
#784116 #787216 #4D7816
triadic
#787216 #167872 #721678
tetradic
#787216 #167841 #161C78 #78164D
square
#787216 #167841 #161C78 #78164D
split-complementary
#787216 #164D78 #411678
monochromatic
#1A1905 #44410D #787216 #ACA31F #D9CF2F

Accessibility & contrast

On white

4.98
#787216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#787216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787216
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787216#FFFFFF#000000##FFFFFF
##7872161.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#7F711E
Tritanopia (blue-blind)
#826A61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787216;
/* rgb */ color: rgb(120, 114, 22);
/* oklch */ color: oklch(54.1% 0.107 105.5);
Tailwind
colors: {
  custom: {
    50: '#a29a5c',
    500: '#787216',
    950: '#000000',
  },
}
SCSS
$custom: #787216;
$custom-light: #a29a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#787216",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 56.327,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.10711,
    "h": 105.5
  },
  "luminance": 0.16086
}

Semantic roles & 50–950 ramp

primary
#787216
secondary
#3C43AD
accent
#47EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E04
muted
#7F7E79

Preview Lab

Preview with #787216

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

Preview Lab → · Contrast checker → · Palette generator →

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