#787816#787816

#787816 is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 55.5% C 0.113 H 109.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#787816
RGBrgb(120, 120, 22)
HSLhsl(60, 69%, 28%)
HSVhsv(60, 82%, 47%)
CMYKcmyk(0%, 0%, 81.7%, 52.9%)
CIE-LABlab(48.86, -11.76, 49.08)
CIE-LCHlch(48.86, 50.47, 103.48°)
OKLaboklab(55.52% -0.0379 0.1066)
OKLCHoklch(55.52% 0.113 109.6)
XYZxyz(14.6076, 17.4844, 3.3643)
Luminance0.1748 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787816 #161678
analogous
#784716 #787816 #477816
triadic
#787816 #167878 #781678
tetradic
#787816 #167847 #161678 #781647
square
#787816 #167847 #161678 #781647
split-complementary
#787816 #164778 #471678
monochromatic
#1A1A05 #44440D #787816 #ACAC1F #D9D92F

Accessibility & contrast

On white

4.67
#787816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#787816 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #787816
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787816#FFFFFF#000000##FFFFFF
##7878161.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#83751F
Tritanopia (blue-blind)
#817066
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #787816;
/* rgb */ color: rgb(120, 120, 22);
/* oklch */ color: oklch(55.5% 0.113 109.6);
Tailwind
colors: {
  custom: {
    50: '#a29e5d',
    500: '#787816',
    950: '#000000',
  },
}
SCSS
$custom: #787816;
$custom-light: #a29e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787816",
  "rgb": {
    "r": 120,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 60,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.55515,
    "c": 0.11313,
    "h": 109.6
  },
  "luminance": 0.17484
}

Semantic roles & 50–950 ramp

primary
#787816
secondary
#3C3CAD
accent
#3CEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787816

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

Preview Lab → · Contrast checker → · Palette generator →

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