#787C2D#787C2D

#787C2D is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.102 H 112.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#787C2D
RGBrgb(120, 124, 45)
HSLhsl(63, 47%, 33%)
HSVhsv(63, 64%, 49%)
CMYKcmyk(3.2%, 0%, 63.7%, 51.4%)
CIE-LABlab(50.21, -12.66, 41.33)
CIE-LCHlch(50.21, 43.22, 107.03°)
OKLaboklab(56.64% -0.0381 0.0944)
OKLCHoklch(56.64% 0.102 112)
XYZxyz(15.4274, 18.5982, 5.2592)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C2D #312D7C
analogous
#7C582D #787C2D #507C2D
triadic
#787C2D #2D787C #7C2D78
tetradic
#787C2D #2D7C58 #312D7C #7C2D50
square
#787C2D #2D7C58 #312D7C #7C2D50
split-complementary
#787C2D #2D507C #582D7C
monochromatic
#21220C #4D4F1D #787C2D #A3A93D #C0C55F

Accessibility & contrast

On white

4.45
#787C2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#787C2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C2D
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C2D#FFFFFF#000000##000000
##787C2D1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#857623
Deuteranopia (green-blind)
#867832
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c2d;
/* rgb */ color: rgb(120, 124, 45);
/* oklch */ color: oklch(56.6% 0.102 112.0);
Tailwind
colors: {
  custom: {
    50: '#a1a16a',
    500: '#787c2d',
    950: '#000000',
  },
}
SCSS
$custom: #787c2d;
$custom-light: #a1a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#787c2d",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 45
  },
  "hsl": {
    "h": 63.038,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56644,
    "c": 0.10176,
    "h": 112
  },
  "luminance": 0.18598
}

Semantic roles & 50–950 ramp

primary
#787C2D
secondary
#5E5AAB
accent
#51D658
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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