#787E36#787E36

#787E36 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.096 H 113.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#787E36
RGBrgb(120, 126, 54)
HSLhsl(65, 40%, 35%)
HSVhsv(65, 57%, 49%)
CMYKcmyk(4.8%, 0%, 57.1%, 50.6%)
CIE-LABlab(50.90, -13.01, 37.76)
CIE-LCHlch(50.90, 39.94, 109.01°)
OKLaboklab(57.22% -0.038 0.088)
OKLCHoklch(57.22% 0.096 113.4)
XYZxyz(15.8728, 19.1814, 6.3555)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E36 #3C367E
analogous
#7E6036 #787E36 #547E36
triadic
#787E36 #36787E #7E3678
tetradic
#787E36 #367E60 #3C367E #7E3654
square
#787E36 #367E60 #3C367E #7E3654
split-complementary
#787E36 #36547E #60367E
monochromatic
#262811 #4F5324 #787E36 #A1A948 #BAC16E

Accessibility & contrast

On white

4.34
#787E36 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#787E36 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E36
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E36#FFFFFF#000000##000000
##787E361.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#87782F
Deuteranopia (green-blind)
#867A3A
Tritanopia (blue-blind)
#7F776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e36;
/* rgb */ color: rgb(120, 126, 54);
/* oklch */ color: oklch(57.2% 0.096 113.4);
Tailwind
colors: {
  custom: {
    50: '#a1a370',
    500: '#787e36',
    950: '#000000',
  },
}
SCSS
$custom: #787e36;
$custom-light: #a1a370;
$custom-dark: #000000;
JSON
{
  "hex": "#787e36",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 54
  },
  "hsl": {
    "h": 65,
    "s": 40,
    "l": 35.294
  },
  "oklch": {
    "l": 0.57221,
    "c": 0.09585,
    "h": 113.4
  },
  "luminance": 0.19181
}

Semantic roles & 50–950 ramp

primary
#787E36
secondary
#6C67A9
accent
#58D062
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787E36

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

Preview Lab → · Contrast checker → · Palette generator →

#787E36 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva