#787C39#787C39

#787C39 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.090 H 112.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#787C39
RGBrgb(120, 124, 57)
HSLhsl(64, 37%, 35%)
HSVhsv(64, 54%, 49%)
CMYKcmyk(3.2%, 0%, 54%, 51.4%)
CIE-LABlab(50.34, -11.65, 35.60)
CIE-LCHlch(50.34, 37.46, 108.12°)
OKLaboklab(56.79% -0.0338 0.0837)
OKLCHoklch(56.79% 0.09 112)
XYZxyz(15.6922, 18.7041, 6.6537)
Luminance0.1870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C39 #3D397C
analogous
#7C5E39 #787C39 #567C39
triadic
#787C39 #39787C #7C3978
tetradic
#787C39 #397C5E #3D397C #7C3956
square
#787C39 #397C5E #3D397C #7C3956
split-complementary
#787C39 #39567C #5E397C
monochromatic
#272812 #4F5226 #787C39 #A1A64C #B9BE71

Accessibility & contrast

On white

4.43
#787C39 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#787C39 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C39
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C39#FFFFFF#000000##000000
##787C391.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#847733
Deuteranopia (green-blind)
#85793D
Tritanopia (blue-blind)
#7F756D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787c39;
/* rgb */ color: rgb(120, 124, 57);
/* oklch */ color: oklch(56.8% 0.090 112.0);
Tailwind
colors: {
  custom: {
    50: '#a1a171',
    500: '#787c39',
    950: '#000000',
  },
}
SCSS
$custom: #787c39;
$custom-light: #a1a171;
$custom-dark: #000000;
JSON
{
  "hex": "#787c39",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 57
  },
  "hsl": {
    "h": 63.582,
    "s": 37.017,
    "l": 35.49
  },
  "oklch": {
    "l": 0.56785,
    "c": 0.09024,
    "h": 112
  },
  "luminance": 0.18704
}

Semantic roles & 50–950 ramp

primary
#787C39
secondary
#6D6AA7
accent
#5BCD62
background
#FAF9F6
surface
#F3F2EC
border
#CDCCC7
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #787C39

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

Preview Lab → · Contrast checker → · Palette generator →

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